Ignore:
Timestamp:
11/11/2006 07:55:13 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
8f2c086
Parents:
fe30c61
Message:

Moved Makefile header creation to a common function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_wrt_Makefile

    rfe30c61 r195ed9f  
    55#=== MAKEFILE HEADER ===
    66
    7 HEADER="# This file is automatically generated by jhalfs
     7#----------------------------------#
     8wrt_Makefile_header() {            #
     9#----------------------------------#
     10(
     11    cat << EOF
     12# This file is automatically generated by jhalfs
    813# DO NOT EDIT THIS FILE MANUALLY
    914#
    10 # Generated on `date \"+%F %X %Z\"`"
     15# Generated on `date "+%F %X %Z"`
     16
     17
     18SRC            = /sources
     19MOUNT_PT       = $BUILDDIR
     20PKG_LST        = $PKG_LST
     21LUSER          = $LUSER
     22LGROUP         = $LGROUP
     23SCRIPT_ROOT    = $SCRIPT_ROOT
     24ADD_BLFS_TOOLS = $BLFS_TOOL
     25
     26BASEDIR        = \$(MOUNT_PT)
     27SRCSDIR        = \$(BASEDIR)/sources
     28CMDSDIR        = \$(BASEDIR)/\$(SCRIPT_ROOT)/$PROGNAME-commands
     29LOGDIR         = \$(BASEDIR)/\$(SCRIPT_ROOT)/logs
     30TESTLOGDIR     = \$(BASEDIR)/\$(SCRIPT_ROOT)/test-logs
     31
     32crCMDSDIR      = /\$(SCRIPT_ROOT)/$PROGNAME-commands
     33crLOGDIR       = /\$(SCRIPT_ROOT)/logs
     34crTESTLOGDIR   = /\$(SCRIPT_ROOT)/test-logs
     35
     36SU_LUSER       = su - \$(LUSER) -c
     37LUSER_HOME     = /home/\$(LUSER)
     38PRT_DU         = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n"
     39PRT_DU_CR      = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found / \`\n"
     40
     41export PATH := \${PATH}:/usr/sbin
     42
     43include makefile-functions
     44
     45EOF
     46) > $MKFILE
     47}
    1148
    1249#=======================
Note: See TracChangeset for help on using the changeset viewer.