2008-09-11 02:12:38 -07:00
|
|
|
top_srcdir=../../..
|
|
|
|
top_builddir=$(top_srcdir)
|
|
|
|
|
|
|
|
include $(top_srcdir)/makerules/common.mk
|
|
|
|
|
2009-09-26 12:09:55 -07:00
|
|
|
OLD110LIST= \
|
|
|
|
doc \
|
|
|
|
images \
|
|
|
|
messages \
|
|
|
|
stats \
|
|
|
|
wrf
|
|
|
|
|
|
|
|
OLD110ARCHIVE=original.wz
|
|
|
|
|
2008-10-13 06:04:37 -07:00
|
|
|
NTWLIST= \
|
|
|
|
addon.lev \
|
|
|
|
audio \
|
|
|
|
components \
|
|
|
|
COPYING \
|
|
|
|
doc \
|
|
|
|
effects \
|
|
|
|
images \
|
|
|
|
messages \
|
|
|
|
multiplay \
|
|
|
|
stats \
|
|
|
|
structs \
|
|
|
|
texpages \
|
|
|
|
wrf
|
2008-09-11 02:12:38 -07:00
|
|
|
|
|
|
|
NTWARCHIVE=ntw.wz
|
|
|
|
|
2009-05-30 11:14:46 -07:00
|
|
|
AIVOLUTIONLIST= \
|
|
|
|
commands.txt \
|
|
|
|
multiplay
|
2008-09-11 02:12:38 -07:00
|
|
|
|
2009-05-30 11:14:46 -07:00
|
|
|
AIVOLUTIONARCHIVE=aivolution.wz
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-26 12:09:55 -07:00
|
|
|
CLEANFILES=$(OLD110ARCHIVE) $(NTWARCHIVE) $(AIVOLUTIONARCHIVE)
|
2009-05-30 11:14:46 -07:00
|
|
|
|
2009-09-26 12:09:55 -07:00
|
|
|
.PHONY: all clean $(OLD110ARCHIVE) $(NTWARCHIVE) $(AIVOLUTIONARCHIVE)
|
2008-09-11 02:12:38 -07:00
|
|
|
|
|
|
|
all:
|
|
|
|
ifdef INSTALLER
|
2009-09-26 12:09:55 -07:00
|
|
|
all: $(OLD110ARCHIVE) $(NTWARCHIVE) $(AIVOLUTIONARCHIVE)
|
2008-09-11 02:12:38 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
stamp:
|
2009-03-30 02:27:25 -07:00
|
|
|
echo stamp > stamp
|
2008-09-11 02:12:38 -07:00
|
|
|
|
2009-09-26 12:09:55 -07:00
|
|
|
$(OLD110ARCHIVE): $(basename $(OLD110ARCHIVE)) stamp $(patsubst %,$(basename $(OLD110ARCHIVE))/%,$(OLD110LIST))
|
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
|
|
|
|
zip -T $@
|
|
|
|
$(RM_F) stamp
|
|
|
|
|
2008-09-11 02:12:38 -07:00
|
|
|
$(NTWARCHIVE): $(basename $(NTWARCHIVE)) stamp $(patsubst %,$(basename $(NTWARCHIVE))/%,$(NTWLIST))
|
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
|
|
|
|
zip -T $@
|
|
|
|
$(RM_F) stamp
|
|
|
|
|
2009-05-30 11:14:46 -07:00
|
|
|
$(AIVOLUTIONARCHIVE): $(basename $(AIVOLUTIONARCHIVE)) stamp $(patsubst %,$(basename $(AIVOLUTIONARCHIVE))/%,$(AIVOLUTIONLIST))
|
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
|
|
|
|
zip -T $@
|
|
|
|
$(RM_F) stamp
|
|
|
|
|
2008-09-11 02:12:38 -07:00
|
|
|
clean:
|
2009-09-26 12:09:55 -07:00
|
|
|
$(RM_F) $(OLD110ARCHIVE) $(NTWARCHIVE) $(AIVOLUTIONARCHIVE)
|