2008-11-15 14:02:30 -08:00
SUBDIRS = base mods music
2007-08-17 10:42:17 -07:00
2008-05-23 15:01:07 -07:00
stamp :
touch stamp
%.wz : % stamp
2009-02-28 11:41:20 -08:00
( cd $( srcdir) /$( notdir $<) && zip -ru0 $( abs_builddir) /$@ $( filter-out stamp,$( filter-out $<,$( ^:$</%= %) ) ) -x '*svn*' -x '*Makefile*' || [ $$ ? -eq 12 ] && true ) # zip returns 12 on "nothing to do"
2008-05-23 15:01:07 -07:00
zip -T $@
rm -f stamp
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
2007-06-28 10:47:08 -07:00
2008-05-23 15:01:07 -07:00
BASEARCHIVE = base.wz
PATCHARCHIVE = mp.wz
2007-01-08 17:28:01 -08:00
2008-05-23 15:01:07 -07:00
CLEANFILES = $( BASEARCHIVE) $( PATCHARCHIVE)
2007-02-15 07:36:25 -08:00
2008-05-23 15:01:07 -07:00
$(BASEARCHIVE) : $( BASELIST :%=$ ( basename $ ( BASEARCHIVE ) ) /%)
$(PATCHARCHIVE) : $( PATCHLIST :%=$ ( basename $ ( PATCHARCHIVE ) ) /%)
2006-12-24 17:43:01 -08:00
2008-09-12 01:19:57 -07:00
nodist_pkgdata_DATA = $( BASEARCHIVE) $( PATCHARCHIVE)