[PATCH] Don't hardcode target dependencies

M.Canales.es macana at macana-es.com
Fri Mar 16 12:26:46 PDT 2007

El Jueves, 15 de Marzo de 2007 23:21, M.Canales.es escribió:

>    ifeq ($(BREAKPOINT), $@ )
>      $(error The build has been stopped at $@ as requested)
>    endif

That don't work. The error is generated at Makefile parser time, not at target 
build time.

But adding at the end of "define housekeeping" this other:

if [ "$(BREAKPOINT)" = "$@" ] ; then \
     echo The build has been stopped at $@ as requested ; \
     bomb-make-here ; \

seems to work:

/mnt/build_dir/jhalfs$ make BREAKPOINT=021-addinguser
ROOT privilege is required to perform a number commands
sudo will request a password to all high privilege cmds to execute correctly
make[1]: Entering directory `/mnt/build_dir/jhalfs'
 Building target 021-addinguser

 Target 021-addinguser OK
        The build has been stopped at 021-addinguser as requested
/bin/bash: bomb-make-here: command not found
make[1]: *** [021-addinguser] Error 127
make[1]: Leaving directory `/mnt/build_dir/jhalfs'
make: *** [mk_SETUP] Error 2
macana at sandbox:/mnt/build_dir/jhalfs$  

I suppose that there is no "bomb-make-here" command anywhere.

Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org

More information about the alfs-discuss mailing list