Changeset 682


Ignore:
Timestamp:
May 13, 2007, 11:39:11 PM (13 years ago)
Author:
Steven Levine
Message:

Tweak macro handling to work as documented
Correct clean target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/makefile

    r674 r682  
    11# warpin\makefile - build the FM/2 Warpin installation file: FM2.WIS
     2# $Id: $
     3
     4# 28 Apr 07 SHL Add clean target
     5# 13 May 07 SHL Tweak macro handling to work as documented
     6# 13 May 07 SHL Correct clean target
    27
    38# Environment:
    49
    5 BASE = fm3
    6 
    710# DEBUG  0 = release build, 1 = debug build
    811
     12# If BUILD_FM2UTILS defined, build FM2UTILS*.wpi and FM2*.wpi
     13# Otherwise build just FM2*.wpi
     14!ifndef BUILD_FM2UTILS
    915BUILD_FM2UTILS=1
    10 #     If defined, then building FM2UTILS*.wpi is included in the ALL and WPI targets
     16!endif
    1117
     18# FM2_VER defines fm/2 WPI file name suffix
     19# e.g. FM2_VER=-3-5-9 results in FM2-3-5-9.wpi being built
     20# If FM2_VER is empty, then FM2.wpi is built
     21# NOTE: Start the variable with '-'
     22
     23!ifndef FM2_VER
    1224FM2_VER=-3-5-9
    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 '-'!
     25!endif
    1626
     27# FM2UTILS_VER defines the fm2utils WPI file name suffix.
     28# e.g. FM2UTILS_VER=-1-0 results in FM2Utils-1.0.wpi being built
     29# If FM2UTILS_VER is empty, then FM2UTILS.wpi is built
     30# NOTE: Start the variable with '-'
     31
     32!ifndef FM2UTILS_VER
    1733FM2UTILS_VER=-1-0
    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 '-'!
     34!endif
    2135
    2236all: wpi
    2337
     38!ifdef BUILD_FM2UTILS
    2439wpi: checkfiles fm2$(FM2_VER).wpi fm2utils$(FM2UTILS_VER).wpi
     40!else
     41wpi: checkfiles fm2$(FM2_VER).wpi
     42!endif
     43
    2544
    2645checkfiles:
     
    4261
    4362fm2utils$(FM2UTILS_VER).wpi: bld_fm2utils_wpi.cmd fm2utils.wis fm2utils\fm2utils.doc fm2utils\license.txt ..\shdwmgr.cmd
    44 !ifdef BUILD_FM2UTILS
    4563   @echo Building FM2Utils
    4664   bld_fm2utils_wpi fm2utils$(FM2UTILS_VER).wpi
    47 !endif
    4865
    49 distclean:
     66clean:
    5067  -if exist fm2$(FM2_VER).wpi del fm2$(FM2_VER).wpi
    5168  -if exist fm2utils$(FM2UTILS_VER).wpi del fm2utils$(FM2UTILS_VER).wpi
     
    5370  clean_wpidirs
    5471
     72# fixme to decide if these should be cleaned and not distcleaned
     73distclean: clean
     74  -if exist fm2.wis del fm2.wis
     75  -if exist fm2utils.wis del fm2utils.wis
     76
    5577# The end
Note: See TracChangeset for help on using the changeset viewer.