Changeset 1165 for Daodan


Ignore:
Timestamp:
Oct 24, 2021, 4:51:14 AM (3 years ago)
Author:
rossy
Message:

Daodan: Add AE package creation to makefile

Location:
Daodan
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/makefile

    r1163 r1165  
    22SRC =
    33TARGET = ../build/
     4DIST_TARGET = ../dist/00020DaodanWin
    45SUBFOLDERS = Patches beaengine
    56
     
    1617
    1718FILES := _DLLInfo.rc $(foreach dir,. $(SUBFOLDERS),$(wildcard $(SRC)$(dir)/*.c))
     19
     20DIST_OUT = $(DIST_TARGET)/plain/win_only/binkw32.dll
     21DIST_FILES := $(DIST_TARGET)/Mod_Info.cfg \
     22              $(DIST_TARGET)/plain/win_only/realbink.dll \
     23              $(DIST_TARGET)/plain/win_only/run_full.bat \
     24              $(DIST_TARGET)/plain/win_only/run_wind.bat \
     25              $(DIST_OUT)
     26DIST = $(DIST_TARGET).zip
    1827
    1928###################################################
     
    3544DEST = $(patsubst $(SRC)%.rc,$(TARGET)%.o,$(patsubst $(SRC)%.c,$(TARGET)%.o,$(FILES)))
    3645
    37 ALL: $(DESTFOLDERS) $(DEST) $(OBJS)
     46all: $(OUT)
     47.PHONY: all
     48
     49$(OUT): $(DESTFOLDERS) $(DEST) $(OBJS)
    3850        @echo "Linking"
    3951        $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBDIRS) $(LIBS)
    4052
    4153clean:
    42         rm -f $(DEST)
    43         rm -Rf $(DESTFOLDERS)
    44         rm -f $(OUT)
     54        -rm -f $(DEST)
     55        -rm -Rf $(DESTFOLDERS)
     56        -rm -f $(OUT)
     57        -rm -f $(DIST) $(DIST_OUT)
     58.PHONY: clean
    4559
    4660$(DESTFOLDERS):
     
    5771        @echo
    5872
     73$(DIST): $(DIST_FILES)
     74        bsdtar -acf $@ --strip-components 2 $(DIST_FILES)
     75
     76$(DIST_OUT): $(OUT)
     77        cp -f $< $@
     78
     79dist: $(DIST)
     80.PHONY: dist
Note: See TracChangeset for help on using the changeset viewer.