r2781 - jhalfs/branches/experimental/BLFS/libs

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Mon Jun 12 18:39:45 PDT 2006


Author: georgeb
Date: 2006-06-12 19:39:44 -0600 (Mon, 12 Jun 2006)
New Revision: 2781

Modified:
   jhalfs/branches/experimental/BLFS/libs/func_makefile
Log:
housekeeping on makefile generation.. DO NOT run the makefile yet

Modified: jhalfs/branches/experimental/BLFS/libs/func_makefile
===================================================================
--- jhalfs/branches/experimental/BLFS/libs/func_makefile	2006-06-13 00:56:07 UTC (rev 2780)
+++ jhalfs/branches/experimental/BLFS/libs/func_makefile	2006-06-13 01:39:44 UTC (rev 2781)
@@ -8,11 +8,11 @@
 # TEMPORARY VARIABLES.. development use only
 declare MKFILE=devMakefile
 declare PREV_PACKAGE=""
-SCRIPT_ROOT=jhalfs
-BUILD_SCRIPTS=scripts
-TRACKING_DIR=/var/lib/jhalfs/BLFS
-BUILDDIR=~/TRIAL
-LOGDIR=$BUILDDIR/logs
+declare SCRIPT_ROOT=jhalfs
+declare BUILD_SCRIPTS=scripts
+declare TRACKING_DIR=/var/lib/jhalfs/BLFS
+declare BUILDDIR=~/TRIAL
+declare LOGDIR=$BUILDDIR/logs
 
 #----------------------------------#
 __wrt_target() {                   # Create target and initialize log file
@@ -48,7 +48,7 @@
 (
 cat << EOF
 	@touch  \$@ && \\
-	touch /var/lib/jhalfs/BLFS/${1#*-} \\
+	touch /var/lib/jhalfs/BLFS/${1#*-} && \\
 	sleep .25 && \\
 	echo -e "\n\n "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
 	echo --------------------------------------------------------------------------------\$(WHITE)
@@ -114,6 +114,7 @@
 SRC= /sources
 MOUNT_PT= $BUILDDIR
 LOGDIR= $LOGDIR
+PACKAGE= "`basename $PKGXML .xml`"
 
 BOLD= ""
 RED= ""
@@ -129,8 +130,16 @@
   @echo \$(WHITE)
 endef
 
+
+define fin_message
+  @echo \$(BOLD)
+  @echo --------------------------------------------------------------------------------
+  @echo \$(BOLD) Build complete for the package \$(BLUE)\$(PACKAGE)\$(BOLD) and its dependencies
+  @echo \$(WHITE)
+endef
+
 all : $pkg_list
-
+	@\$(call fin_message )
 EOF
 ) > $MKFILE
 




More information about the alfs-log mailing list