Changeset 1265


Ignore:
Timestamp:
Oct 30, 2008, 3:41:55 PM (17 years ago)
Author:
John Small
Message:

Code improvements, including condensed script-related code and eliminated
occasional duplicate addition of the script to the WPI file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/makefile

    r1256 r1265  
    1717# 23 Oct 08 JBS Ticket 293: Add "chksed" target to check for sufficient SED and GREP and
    1818#               improve support for -a option in the checkfiles target.
     19# 30 Oct 08 JBS Code improvements, including condensed script-related code and
     20#               eliminated occasional duplicate addition of the script to the WPI file
    1921
    2022!ifndef FM2_VER                  # if defined on wmake command, use it
     
    5658
    5759!ifeq BUILD_FM2UTILS 0
    58 wpi: checkfiles fm2.wis fm2$(FM2_VER).wpi .symbolic
     60wpi: chksed checkfiles fm2$(FM2_VER).wpi fm2.wis .symbolic
    5961!else
    60 wpi: checkfiles fm2.wis fm2$(FM2_VER).wpi fm2utils$(FM2UTILS_VER).wpi .symbolic
     62wpi: chksed checkfiles fm2$(FM2_VER).wpi fm2.wis fm2utils$(FM2UTILS_VER).wpi .symbolic
    6163!endif
    62 
    6364
    6465checkfiles: .symbolic
     
    6970   @sed -V <nul 2>&1 | grep -i "GNU sed" >nul 2>&1 || (@echo. & @echo GNU SED and GREP required and not found on the PATH. & @echo.)
    7071
    71 fm2.wis: chksed fm2.wis.in fm2utils\fm2utils.doc fm2utils\license.txt makefile sed.in
     72fm2.wis: fm2.wis.in fm2utils\fm2utils.doc fm2utils\license.txt makefile sed.in
     73   @echo Inserting the new Warpin script into the WPI file...
    7274   sed -e "s/@@@FM2_VER@@@/$(FM2_VER)/" -e "s/@@@FM2UTILS_VER@@@/$(FM2UTILS_VER)/" -f sed.in fm2.wis.in | sed "/@@@include/{s/@@@include//;N;s/\n//}" >fm2.wis
     75   bld_fm2_wpi fm2$(FM2_VER).wpi /SCRIPT
    7376
    74 fm2$(FM2_VER).wpi:: bld_fm2_wpidirs.in makefile
     77fm2$(FM2_VER).wpi: bld_fm2_wpidirs.in makefile
    7578   @echo Staging files for WPI file...
    7679   bld_fm2_wpidirs
     
    7881   bld_fm2_wpi fm2$(FM2_VER).wpi
    7982
    80 fm2$(FM2_VER).wpi:: fm2.wis makefile
    81    @echo Inserting the new Warpin script into the WPI file...
    82    bld_fm2_wpi fm2$(FM2_VER).wpi /SCRIPT
     83# fm2$(FM2_VER).wpi:: fm2.wis makefile
     84#    @echo Inserting the new Warpin script into the WPI file...
     85#    bld_fm2_wpi fm2$(FM2_VER).wpi /SCRIPT
    8386
    8487fm2utils$(FM2UTILS_VER).wpi: bld_fm2utils_wpi.cmd fm2utils.wis fm2utils\fm2utils.doc fm2utils\license.txt ..\shdwmgr.cmd makefile
Note: See TracChangeset for help on using the changeset viewer.