jhalfs-x: new Makefile scheme

George Boudreau georgeb at linuxfromscratch.org
Fri Aug 25 13:28:21 PDT 2006


Manuel,
   We had talked about changing the makefile design to track the lfs 
books build concept. I tried both separated makefiles for each stage and 
a recursive style (the recursive style is included). Both have their 
problems and most are related to privileges.
   I will continue on with the recursive makefile (it's easier to code) 
and keep you informed on my progress.



all:	mk_SETUP mk_LUSER mk_CHROOT mk_BOOT
	@$(call echo_finished,$VERSION)

mk_SETUP:
	@$(call echo_SU_request)
	@sudo make SETUP
	@touch $@
	
mk_LUSER: mk_SETUP
	@$(call echo_SULUSER_request)
	@( $(SU_LUSER) "source .bashrc && cd $(MOUNT_PT)/$(SCRIPT_ROOT) && make 
LUSER" )
	@touch $@

mk_CHROOT: mk_LUSER
	@sudo make CHROOT
	@touch $@

mk_BOOT: mk_CHROOT
	@sudo make BOOT
	@touch $@
	

SETUP:	$chapter4
LUSER:	$chapter5
CHROOT:	$chapter6
BOOT:	$chapter789




More information about the alfs-discuss mailing list