housekeeping on makefile generation.. DO NOT run the makefile yet
This commit is contained in:
parent
cace333e8e
commit
5d93cec9ac
1 changed files with 16 additions and 7 deletions
|
@ -8,11 +8,11 @@
|
||||||
# TEMPORARY VARIABLES.. development use only
|
# TEMPORARY VARIABLES.. development use only
|
||||||
declare MKFILE=devMakefile
|
declare MKFILE=devMakefile
|
||||||
declare PREV_PACKAGE=""
|
declare PREV_PACKAGE=""
|
||||||
SCRIPT_ROOT=jhalfs
|
declare SCRIPT_ROOT=jhalfs
|
||||||
BUILD_SCRIPTS=scripts
|
declare BUILD_SCRIPTS=scripts
|
||||||
TRACKING_DIR=/var/lib/jhalfs/BLFS
|
declare TRACKING_DIR=/var/lib/jhalfs/BLFS
|
||||||
BUILDDIR=~/TRIAL
|
declare BUILDDIR=~/TRIAL
|
||||||
LOGDIR=$BUILDDIR/logs
|
declare LOGDIR=$BUILDDIR/logs
|
||||||
|
|
||||||
#----------------------------------#
|
#----------------------------------#
|
||||||
__wrt_target() { # Create target and initialize log file
|
__wrt_target() { # Create target and initialize log file
|
||||||
|
@ -48,7 +48,7 @@ __wrt_touch() { #
|
||||||
(
|
(
|
||||||
cat << EOF
|
cat << EOF
|
||||||
@touch \$@ && \\
|
@touch \$@ && \\
|
||||||
touch /var/lib/jhalfs/BLFS/${1#*-} \\
|
touch /var/lib/jhalfs/BLFS/${1#*-} && \\
|
||||||
sleep .25 && \\
|
sleep .25 && \\
|
||||||
echo -e "\n\n "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
echo -e "\n\n "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
||||||
echo --------------------------------------------------------------------------------\$(WHITE)
|
echo --------------------------------------------------------------------------------\$(WHITE)
|
||||||
|
@ -114,6 +114,7 @@ $HEADER
|
||||||
SRC= /sources
|
SRC= /sources
|
||||||
MOUNT_PT= $BUILDDIR
|
MOUNT_PT= $BUILDDIR
|
||||||
LOGDIR= $LOGDIR
|
LOGDIR= $LOGDIR
|
||||||
|
PACKAGE= "`basename $PKGXML .xml`"
|
||||||
|
|
||||||
BOLD= "[0;1m"
|
BOLD= "[0;1m"
|
||||||
RED= "[1;31m"
|
RED= "[1;31m"
|
||||||
|
@ -129,8 +130,16 @@ define echo_message
|
||||||
@echo \$(WHITE)
|
@echo \$(WHITE)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
all : $pkg_list
|
|
||||||
|
|
||||||
|
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
|
EOF
|
||||||
) > $MKFILE
|
) > $MKFILE
|
||||||
|
|
||||||
|
|
Reference in a new issue