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-06-23 06:54:47 -07:00
|
|
|
BASELIST=anims audio components effects features tagdefinitions \
|
|
|
|
gamedesc.lev images messages misc multiplay music novideo.rpl script \
|
|
|
|
sequenceaudio stats stats-sql structs texpages wrf
|
|
|
|
PATCHLIST=addon.lev anims components effects \
|
2007-08-16 10:21:21 -07:00
|
|
|
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:
|
|
|
|
touch 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))
|
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' || [ $$? -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))
|
|
|
|
(cd $< && zip -ru0 $@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' || [ $$? -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)
|