Changeset 3e7ceed for HLFS


Ignore:
Timestamp:
12/15/2006 10:53:10 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
fcb540b
Parents:
830f28d
Message:

Ported CUSTOM_TOOLS support to all books.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/master.sh

    r830f28d r3e7ceed  
    495495  [[ "$COMPARE" = "y" ]] && wrt_compare_targets
    496496  chapter7_Makefiles
     497  # Add the CUSTOM_TOOLS targets, if needed
     498  [[ "$CUSTOM_TOOLS" = "y" ]] && wrt_CustomTools_target
     499  # Add the BLFS_TOOL targets, if needed
     500  [[ "$BLFS_TOOL" = "y" ]] && wrt_blfs_tool_targets
    497501
    498502  # Add a header, some variables and include the function file
     
    527531  cat << EOF
    528532
    529 all:    ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL
     533all:    ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_CUSTOM_TOOLS mk_BLFS_TOOL
    530534        @sudo make do-housekeeping
    531535        @echo "$VERSION - jhalfs build" > hlfs-release && \\
     
    579583        @touch \$@
    580584
    581 mk_BLFS_TOOL: create-sbu_du-report
    582         @\$(call echo_PHASE,Building BLFS-TOOLS)
     585mk_CUSTOM_TOOLS: create-sbu_du-report
     586        @if [ "\$(ADD_CUSTOM_TOOLS)" = "y" ]; then \\
     587          \$(call echo_PHASE,Building CUSTOM_TOOLS); \\
     588          \$(call echo_CHROOT_request); \\
     589          sudo mkdir -p ${BUILDDIR}${TRACKING_DIR}; \\
     590          (sudo \$(CHROOT2) "cd \$(SCRIPT_ROOT) && make CUSTOM_TOOLS"); \\
     591        fi;
     592        @touch \$@
     593
     594mk_BLFS_TOOL: mk_CUSTOM_TOOLS
    583595        @if [ "\$(ADD_BLFS_TOOLS)" = "y" ]; then \\
     596          \$(call echo_PHASE,Building BLFS_TOOL); \\
     597          \$(call echo_CHROOT_request); \\
    584598          sudo mkdir -p $BUILDDIR$TRACKING_DIR; \\
    585           sudo \$(CHROOT2) "cd \$(SCRIPT_ROOT) && make BLFS_TOOL"; \\
     599          (sudo \$(CHROOT2) "cd \$(SCRIPT_ROOT) && make BLFS_TOOL"); \\
    586600        fi;
    587601        @touch \$@
    588602
    589603
    590 SETUP:     $chapter3
    591 LUSER:     $chapter5
    592 SUDO:      $runasroot
    593 CHROOT:    $chapter6
    594 BOOT:      $chapter7
    595 BLFS_TOOL: $blfs_tool
     604SETUP:        $chapter3
     605LUSER:        $chapter5
     606SUDO:         $runasroot
     607CHROOT:       $chapter6
     608BOOT:         $chapter7
     609CUSTOM_TOOLS: $custom_list
     610BLFS_TOOL:    $blfs_tool
    596611
    597612
Note: See TracChangeset for help on using the changeset viewer.