2008-07-10 13:10:16 -07:00
|
|
|
top_srcdir=..
|
|
|
|
top_builddir=$(top_srcdir)
|
|
|
|
|
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
|
|
|
SUBDIRS=mods
|
2006-12-27 05:35:10 -08:00
|
|
|
|
2008-10-13 06:04:37 -07:00
|
|
|
BASELIST= \
|
|
|
|
anims \
|
|
|
|
audio \
|
|
|
|
components \
|
|
|
|
effects \
|
|
|
|
features \
|
|
|
|
gamedesc.lev \
|
|
|
|
images \
|
|
|
|
messages \
|
|
|
|
misc \
|
|
|
|
multiplay \
|
|
|
|
script \
|
|
|
|
sequenceaudio \
|
|
|
|
stats \
|
|
|
|
stats-sql \
|
|
|
|
structs \
|
|
|
|
tagdefinitions \
|
|
|
|
texpages \
|
|
|
|
wrf
|
|
|
|
|
|
|
|
PATCHLIST= \
|
|
|
|
addon.lev \
|
|
|
|
anims \
|
|
|
|
components \
|
|
|
|
effects \
|
|
|
|
messages \
|
|
|
|
multiplay \
|
|
|
|
stats \
|
|
|
|
structs \
|
|
|
|
wrf
|
2006-12-27 05:35:10 -08:00
|
|
|
|
2008-05-23 14:42:44 -07:00
|
|
|
BASEARCHIVE=base.wz
|
2006-12-27 05:35:10 -08:00
|
|
|
PATCHARCHIVE=mp.wz
|
|
|
|
|
2008-06-23 06:54:47 -07:00
|
|
|
CLEANFILES=$(BASEARCHIVE) $(PATCHARCHIVE)
|
|
|
|
|
2008-06-24 16:41:52 -07:00
|
|
|
include $(top_srcdir)/makerules/submake.mk
|
2008-06-23 06:54:47 -07:00
|
|
|
|
|
|
|
.PHONY: all clean $(BASEARCHIVE) $(PATCHARCHIVE) $(SUBDIRS)
|
|
|
|
|
2007-01-08 17:28:01 -08:00
|
|
|
all:
|
2008-07-10 10:51:31 -07:00
|
|
|
ifdef INSTALLER
|
2007-08-17 10:42:17 -07:00
|
|
|
all: $(BASEARCHIVE) $(PATCHARCHIVE) $(SUBDIRS)
|
2007-01-08 17:28:01 -08:00
|
|
|
endif
|
2006-12-27 05:35:10 -08:00
|
|
|
|
2008-06-23 06:54:47 -07:00
|
|
|
stamp:
|
2008-07-10 13:10:16 -07:00
|
|
|
echo > stamp
|
2007-08-17 11:31:35 -07:00
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
$(BASEARCHIVE): $(basename $(BASEARCHIVE)) stamp $(patsubst %,$(basename $(BASEARCHIVE))/%,$(BASELIST))
|
2008-11-16 05:45:41 -08:00
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' -x '*Makefile*' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
|
2006-12-27 05:35:10 -08:00
|
|
|
zip -T $@
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) stamp
|
2006-12-27 05:35:10 -08:00
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
$(PATCHARCHIVE): $(basename $(BASEARCHIVE)) stamp $(patsubst %,$(basename $(PATCHARCHIVE))/%,$(PATCHLIST))
|
2008-11-16 05:45:41 -08:00
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' -x '*Makefile*' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
|
2006-12-27 05:35:10 -08:00
|
|
|
zip -T $@
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) stamp
|
2006-12-27 05:35:10 -08:00
|
|
|
|
2007-08-17 10:42:17 -07:00
|
|
|
clean: $(SUBDIRS)
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) $(BASEARCHIVE)
|
|
|
|
$(RM_F) $(PATCHARCHIVE)
|