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
|
|
|
|
|
2009-02-20 07:25:57 -08:00
|
|
|
MPLIST= \
|
2008-10-13 06:04:37 -07:00
|
|
|
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
|
2009-02-20 07:25:57 -08:00
|
|
|
MPARCHIVE=mp.wz
|
2006-12-27 05:35:10 -08:00
|
|
|
|
2009-02-20 07:25:57 -08:00
|
|
|
CLEANFILES=$(BASEARCHIVE) $(MPARCHIVE)
|
2008-06-23 06:54:47 -07:00
|
|
|
|
2008-06-24 16:41:52 -07:00
|
|
|
include $(top_srcdir)/makerules/submake.mk
|
2008-06-23 06:54:47 -07:00
|
|
|
|
2009-02-20 07:25:57 -08:00
|
|
|
.PHONY: all clean $(BASEARCHIVE) $(MPARCHIVE) $(SUBDIRS)
|
2008-06-23 06:54:47 -07:00
|
|
|
|
2007-01-08 17:28:01 -08:00
|
|
|
all:
|
2008-07-10 10:51:31 -07:00
|
|
|
ifdef INSTALLER
|
2009-02-20 07:25:57 -08:00
|
|
|
all: $(BASEARCHIVE) $(MPARCHIVE) $(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
|
|
|
|
2009-02-20 07:25:57 -08:00
|
|
|
$(MPARCHIVE): $(basename $(MPARCHIVE)) stamp $(patsubst %,$(basename $(MPARCHIVE))/%,$(MPLIST))
|
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)
|
2009-02-20 07:25:57 -08:00
|
|
|
$(RM_F) $(MPARCHIVE)
|