When experimenting with the LFS build, one of the things I want to do
is make jhalfs stop at specific points. Say, after Ch. 5 or after a
certain point in Ch. 6. Right now I'm trying to investigate the ICA
differences in cc1 and cc1plus, so I want to build just up to Ch. 6
gcc and stop.

Currently this is kind of hard because the dependencies for the major
targets are hardcoded. For instance:

LUSER:         028-binutils-pass1 029-gcc-pass1 030-linux-headers ...

And with the sudo indirection, it's difficult for me to say `make
028-binutils-pass1' or something and have it just stop there. What
would make this easier would be if the dependencies
(028-binutils-pass1, etc.) were in a variable that I could override:

LUSER_TARGETS = 028-binutils-pass1 ...
LUSER: $(LUSER_TARGETS)

The attached patch tries to do just that. For normal usage, this will
make no difference since people won't be trying to override the
variables. But for special cases, this makes things simpler. I could
be totally wrong about the CUSTOM_TOOLS and BLFS_TOOL targets. I don't
know how those work.

--
Dan
Index: LFS/master.sh
===================================================================
--- LFS/master.sh	(revision 3332)
+++ LFS/master.sh	(working copy)
@@ -408,7 +408,9 @@
 (
     cat << EOF
 
-all:	ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_CUSTOM_TOOLS mk_BLFS_TOOL
+ALL_TARGETS = ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT \\
+	create-sbu_du-report mk_CUSTOM_TOOLS mk_BLFS_TOOL
+all: \$(ALL_TARGETS)
 	@sudo make do_housekeeping
 	@echo "$VERSION - jhalfs build" > lfs-release && \\
 	sudo mv lfs-release \$(MOUNT_PT)/etc
@@ -464,14 +466,21 @@
 	@touch \$@
 
 
-SETUP:        $chapter4
-LUSER:        $chapter5
-SUDO:         $runasroot
+SETUP_TARGETS = $chapter4
+SETUP:        \$(SETUP_TARGETS)
+LUSER_TARGETS = $chapter5
+LUSER:        \$(LUSER_TARGETS)
+SUDO_TARGETS = $runasroot
+SUDO:         \$(SUDO_TARGETS)
 CHROOT:       SHELL=/tools/bin/bash
-CHROOT:       $chapter6
-BOOT:         $chapter78
-CUSTOM_TOOLS: $custom_list
-BLFS_TOOL:    $blfs_tool
+CHROOT_TARGETS = $chapter6
+CHROOT:       \$(CHROOT_TARGETS)
+BOOT_TARGETS = $chapter78
+BOOT:         \$(BOOT_TARGETS)
+CUSTOM_TARGETS = $custom_list
+CUSTOM_TOOLS: \$(CUSTOM_TARGETS)
+BLFS_TARGETS = $blfs_tool
+BLFS_TOOL:    \$(BLFS_TARGETS)
 
 
 create-sbu_du-report:  mk_BOOT
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to