[PATCH] Don't hardcode target dependencies

George Boudreau georgeb at linuxfromscratch.org
Fri Mar 16 12:35:19 PDT 2007


M.Canales.es wrote:
> 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 ; \
> fi
> 
> seems to work:
> 
> /mnt/build_dir/jhalfs$ make BREAKPOINT=021-addinguser
> --------------------------------------------------------------------------------
> mk_SETUP
> 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.
> 
> 
   no, but if you replace 'bomb-make-here' with 'false' it will terminate.




More information about the alfs-discuss mailing list