2007-08-17 10:42:17 -07:00
|
|
|
SUBDIRS=mods
|
|
|
|
|
2006-12-27 05:35:10 -08:00
|
|
|
MAKERULES=../makerules
|
|
|
|
include $(MAKERULES)/configure.mk
|
|
|
|
|
2008-01-05 05:37:49 -08:00
|
|
|
BASELIST = anims audio components effects features tagdefinitions \
|
2008-01-21 09:06:31 -08:00
|
|
|
gamedesc.lev images messages misc multiplay novideo.rpl \
|
2007-08-03 05:04:24 -07:00
|
|
|
script sequenceaudio stats structs texpages wrf
|
2007-08-16 10:21:21 -07:00
|
|
|
PATCHLIST = addon.lev anims components effects \
|
|
|
|
messages multiplay stats structs wrf
|
2006-12-27 05:35:10 -08:00
|
|
|
|
|
|
|
BASEARCHIVE=warzone.wz
|
|
|
|
PATCHARCHIVE=mp.wz
|
|
|
|
|
2007-01-08 17:28:01 -08:00
|
|
|
all:
|
|
|
|
ifdef DATA
|
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
|
|
|
|
2007-08-17 11:31:35 -07:00
|
|
|
$(SUBDIRS):
|
|
|
|
$(MAKE) -f Makefile.raw -C $@ $(MAKECMDGOALS)
|
|
|
|
|
2007-01-08 17:28:01 -08:00
|
|
|
$(BASEARCHIVE): $(BASELIST)
|
2006-12-27 05:35:10 -08:00
|
|
|
zip -ru0 $@ $(BASELIST) -x *svn*
|
|
|
|
zip -T $@
|
|
|
|
|
2007-08-16 10:21:21 -07:00
|
|
|
$(PATCHARCHIVE): $(PATCHLIST:%=mp/%)
|
2006-12-27 05:35:10 -08:00
|
|
|
cd mp && zip -ru0 ../$@ $(PATCHLIST) -x *svn*
|
|
|
|
zip -T $@
|
|
|
|
|
2007-08-17 10:42:17 -07:00
|
|
|
clean: $(SUBDIRS)
|
2007-01-08 17:28:01 -08:00
|
|
|
$(RMF) $(BASEARCHIVE)
|
|
|
|
$(RMF) $(PATCHARCHIVE)
|
2007-08-17 10:42:17 -07:00
|
|
|
|
2007-10-31 05:41:26 -07:00
|
|
|
.PHONY: all clean $(SUBDIRS) $(BASEARCHIVE) $(PATCHARCHIVE)
|