Changeset 662
- Timestamp:
- May 12, 2007, 5:09:40 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/warpin/makefile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/warpin/makefile
r654 r662 3 3 # Environment: 4 4 5 BASE = fm3 6 5 7 # DEBUG 0 = release build, 1 = debug build 6 8 7 BASE = fm3 9 # BUILD_FM2UTILS 10 # If defined, then building FM2UTILS*.wpi is included in the ALL and WPI targets 11 12 # FM2_VER 13 # Used for the WPI file name. e.g. FM2_VER=-3-5-9 results in FM2-3-5-9.wpi being built 14 # If FM2_VER is undefined, then FM2.wpi is built 15 # NOTE: Start the variable with '-'! 16 17 # FM2UTILS_VER 18 # Used for the WPI file name. e.g. FM2UTILS_VER=-1-0 results in FM2Utils-1.0.wpi being built 19 # If FM2UTILS_VER is undefined, then FM2UTILS.wpi is built 20 # NOTE: Start the variable with '-'! 8 21 9 22 all: wpi 10 23 11 wpi: checkfiles fm2 .wpi fm2utils.wpi24 wpi: checkfiles fm2$(FM2_VER).wpi fm2utils$(FM2UTILS_VER).wpi 12 25 13 26 checkfiles: 14 27 @echo Checking to see if files have been changed... 15 ckfiles 28 ckfiles fm2$(FM2_VER).wpi 16 29 17 fm2.wpi:: bld_fm2_wpidirs.in 30 fm2.wis: fm2.wis.in 31 sed -e "s/###FM2UTILS_VER###/$(FM2UTILS_VER)/g" -e "/###include fm2utils.doc###/r fm2utils\fm2utils.doc" -e "s/###include fm2utils.doc###//g" -e "/###include license.txt###/r fm2utils\license.txt" -e "s/###include license.txt###//g" fm2.wis.in >fm2.wis 32 33 fm2$(FM2_VER).wpi:: bld_fm2_wpidirs.in 18 34 @echo Staging files for WPI file... 19 35 bld_fm2_wpidirs 20 36 @echo Creating/updating the WPI file 21 bld_fm2_wpi 37 bld_fm2_wpi fm2$(FM2_VER).wpi 22 38 23 fm2 .wpi:: fm2.wis39 fm2$(FM2_VER).wpi:: fm2.wis 24 40 @echo Inserting the new Warpin script into the WPI file... 25 bld_fm2_wpi /SCRIPT41 bld_fm2_wpi fm2$(FM2_VER).wpi /SCRIPT 26 42 43 fm2utils$(FM2UTILS_VER).wpi: bld_fm2utils_wpi.cmd fm2utils.wis fm2utils\fm2utils.doc fm2utils\license.txt ..\shadowmgr.cmd 27 44 !ifdef BUILD_FM2UTILS 28 fm2utils.wpi: bld_fm2utils_wpi.cmd fm2utils.wis fm2utils\fm2utils.doc fm2utils\license.txt ..\shadowmgr.cmd29 45 @echo Building FM2Utils 30 bld_fm2utils_wpi 46 bld_fm2utils_wpi fm2utils$(FM2UTILS_VER).wpi 31 47 !endif 32 48 33 49 distclean: 34 -if exist fm2 .wpi del fm2.wpi35 -if exist fm2utils .wpi del fm2utils.wpi50 -if exist fm2$(FM2_VER).wpi del fm2$(FM2_VER).wpi 51 -if exist fm2utils$(FM2UTILS_VER).wpi del fm2utils$(FM2UTILS_VER).wpi 36 52 -if exist bld_fm2_wpidirs.in del bld_fm2_wpidirs.in 37 53 clean_wpidirs
Note:
See TracChangeset
for help on using the changeset viewer.
