Changeset 4 for branches/1.0


Ignore:
Timestamp:
Aug 24, 2009, 6:10:11 PM (16 years ago)
Author:
diver
Message:

revisited makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/src/makefile.kmk

    r2 r4  
    3939uni_INCS = ./h ./rc
    4040
    41 uni_CLEAN = /rc/description.rc $(PATH_BIN)/uni.pdr $(PATH_BIN)/uni.dll
     41uni_DLLSUFF = .pdr
     42
     43uni_CLEAN = /rc/description.rc $(PATH_BIN)/uni.pdr
    4244
    4345#build other files (e.g. help)
    44 OTHERS = /rc/uni.ipf $(PATH_BIN)/uni.hlp $(PATH_BIN)/readme.txt $(PATH_BIN)/uni.pdr
     46OTHERS = /rc/uni.ipf $(PATH_BIN)/uni.hlp $(PATH_BIN)/readme.txt
    4547OTHER_CLEAN = $(PATH_BIN)/uni.hlp $(PATH_BIN)/readme.txt
    4648
     
    4850# packaging stuffs
    4951ifeq ($(BUILD_TYPE),debug)
    50   PACKAGE_NAME = uni-$(subst .,_,$(VERSION))-$(BUILD)-debug
     52  PACKAGE_NAME = uni-$(subst .,_,$(VERSION))-$(BUILD)-debug.zip
    5153else
    52   PACKAGE_NAME = uni-$(subst .,_,$(VERSION))-$(BUILD)
     54  PACKAGE_NAME = uni-$(subst .,_,$(VERSION))-$(BUILD).zip
    5355endif
    54 PACKING += $(PATH_ROOT)/dist/$(PACKAGE_NAME).zip
    55 OTHER_CLEAN += $(PATH_ROOT)/dist/$(PACKAGE_NAME).zip
     56PACKING += $(PATH_ROOT)/dist/$(PACKAGE_NAME)
     57OTHER_CLEAN += $(PATH_ROOT)/dist/$(PACKAGE_NAME)
    5658
    5759# now include standard code
     
    9092                > $(PATH_BIN)/readme.txt
    9193
    92 #rename the dll to pdr
    93 $(PATH_BIN)/uni.pdr: config.kmk
    94         cp $(PATH_TARGET)/uni/uni.dll $(PATH_BIN)/uni.pdr
     94# final: zip all files!
     95$(PATH_ROOT)/dist/$(PACKAGE_NAME): \
     96                $(PATH_BIN)/uni.pdr
     97        $(QUIET)$(MKDIR) -p $(PATH_ROOT)/dist                             
     98        $(QUIET)$(RM) -f $@
     99        -ea2.cmd -e DEFAULT_PORT=UNI $(PATH_BIN)/uni.pdr
     100        $(QUIET)zip -9 -j $@ $(PATH_BIN)/*
    95101
    96102
Note: See TracChangeset for help on using the changeset viewer.