From fd7455c95ca67da28f4a41bf6e61a04a308018da Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 1 Oct 2006 10:49:13 +0000 Subject: [PATCH] Added blfs-tool dependencies targets to LFS builds. --- LFS/master.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/LFS/master.sh b/LFS/master.sh index 3457ded..56dd6e0 100755 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -372,6 +372,8 @@ build_Makefile() { # # Add the iterations targets, if needed [[ "$COMPARE" = "y" ]] && wrt_compare_targets chapter789_Makefiles + # Add the BLFS_TOOL targets, if needed + [[ "$BLFS_TOOL" = "y" ]] && wrt_blfs_tool_targets # Add a header, some variables and include the function file # to the top of the real Makefile. @@ -434,7 +436,7 @@ EOF ( cat << EOF -all: ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report +all: ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL @sudo make do_housekeeping @\$(call echo_finished,$VERSION) @@ -577,6 +579,23 @@ EOF @touch \$@ +EOF +) >> $MKFILE + else echo -e "\t@true\n\n" >> $MKFILE; fi + + # Add BLFS_TOOL targets + echo "mk_BLFS_TOOL:" >> $MKFILE + if [[ "$BLFS_TOOL" = "y" ]] ; then +( + cat << EOF + @\$(call echo_CHROOT_request) + @ sudo mkdir $BUILDDIR$TRACKING_DIR + @( sudo \$(CHROOT2) "cd \$(SCRIPT_ROOT) && make BLFS_TOOL") + @touch \$@ + +BLFS_TOOL: $blfs_tool + + EOF ) >> $MKFILE else echo -e "\t@true\n\n" >> $MKFILE; fi