2008-06-28 15:32:44 -07:00
|
|
|
include $(top_srcdir)/makerules/common.mk
|
2007-08-17 10:42:17 -07:00
|
|
|
|
2008-06-23 06:54:47 -07:00
|
|
|
AIVOLUTIONLIST=multiplay commands.txt
|
|
|
|
GRIMLIST=components structs texpages wrf COPYING
|
|
|
|
NEWST_TILESLIST=texpages COPYING readme.txt
|
|
|
|
NTWLIST=addon.lev audio components COPYING doc effects images messages multiplay stats structs texpages wrf
|
2007-08-17 10:42:17 -07:00
|
|
|
|
2007-08-17 12:59:28 -07:00
|
|
|
AIVOLUTIONARCHIVE=aivolution.wz
|
2007-08-17 10:42:17 -07:00
|
|
|
GRIMARCHIVE=grim.wz
|
2007-12-22 12:01:10 -08:00
|
|
|
NEWST_TILESARCHIVE=newst_tiles.wz
|
2008-06-11 08:14:55 -07:00
|
|
|
NTWARCHIVE=ntw.wz
|
2007-08-17 10:42:17 -07:00
|
|
|
|
2008-06-23 06:54:47 -07:00
|
|
|
CLEANFILES=$(AIVOLUTIONARCHIVE) $(GRIMARCHIVE) $(NEWST_TILESARCHIVE) $(NTWARCHIVE)
|
|
|
|
|
|
|
|
.PHONY: all clean $(AIVOLUTIONARCHIVE) $(GRIMARCHIVE) $(NEWST_TILESARCHIVE) $(NTWARCHIVE)
|
|
|
|
|
2007-08-17 10:42:17 -07:00
|
|
|
all:
|
2008-07-10 10:51:31 -07:00
|
|
|
ifdef INSTALLER
|
2008-06-11 08:14:55 -07:00
|
|
|
all: $(AIVOLUTIONARCHIVE) $(GRIMARCHIVE) $(NEWST_TILESARCHIVE) $(NTWARCHIVE)
|
2007-08-17 10:42:17 -07:00
|
|
|
endif
|
|
|
|
|
2008-06-23 06:54:47 -07:00
|
|
|
stamp:
|
|
|
|
touch stamp
|
|
|
|
|
2008-06-28 15:32:14 -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"
|
2007-08-17 12:59:28 -07:00
|
|
|
zip -T $@
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) stamp
|
2007-08-17 12:59:28 -07:00
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
$(GRIMARCHIVE): $(basename $(GRIMARCHIVE)) stamp $(patsubst %,$(basename $(GRIMARCHIVE))/%,$(GRIMLIST))
|
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
|
2007-08-17 10:42:17 -07:00
|
|
|
zip -T $@
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) stamp
|
2007-08-17 10:42:17 -07:00
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
$(NEWST_TILESARCHIVE): $(basename $(NEWST_TILESARCHIVE)) stamp $(patsubst %,$(basename $(NEWST_TILESARCHIVE))/%,$(NEWST_TILESLIST))
|
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
|
2007-12-22 12:01:10 -08:00
|
|
|
zip -T $@
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) stamp
|
2007-12-22 12:01:10 -08:00
|
|
|
|
2008-06-28 15:32:14 -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"
|
2008-06-11 08:14:55 -07:00
|
|
|
zip -T $@
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) stamp
|
2008-06-11 08:14:55 -07:00
|
|
|
|
2007-08-17 10:42:17 -07:00
|
|
|
clean:
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) $(GRIMARCHIVE)
|
|
|
|
$(RM_F) $(AIVOLUTIONARCHIVE)
|
|
|
|
$(RM_F) $(NEWST_TILESARCHIVE)
|
|
|
|
$(RM_F) $(NTWARCHIVE)
|