55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
SUBDIRS = mods music
|
|
|
|
stamp:
|
|
touch stamp
|
|
|
|
%.wz: $(abs_srcdir)/% stamp
|
|
(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"
|
|
zip -T $@
|
|
rm -f stamp
|
|
|
|
BASELIST = \
|
|
palette.txt \
|
|
anims \
|
|
audio \
|
|
components \
|
|
effects \
|
|
features \
|
|
gamedesc.lev \
|
|
images \
|
|
messages \
|
|
misc \
|
|
multiplay \
|
|
script \
|
|
sequenceaudio \
|
|
stats \
|
|
structs \
|
|
tagdefinitions \
|
|
texpages \
|
|
wrf
|
|
|
|
PATCHLIST = \
|
|
addon.lev \
|
|
anims \
|
|
components \
|
|
effects \
|
|
messages \
|
|
multiplay \
|
|
stats \
|
|
structs \
|
|
wrf
|
|
|
|
BASEARCHIVE = base.wz
|
|
PATCHARCHIVE = mp.wz
|
|
|
|
CLEANFILES = $(BASEARCHIVE) $(PATCHARCHIVE)
|
|
|
|
$(BASEARCHIVE): $(BASELIST:%=$(abs_srcdir)/$(basename $(BASEARCHIVE))/%)
|
|
$(PATCHARCHIVE): $(PATCHLIST:%=$(abs_srcdir)/$(basename $(PATCHARCHIVE))/%)
|
|
|
|
nodist_pkgdata_DATA = $(BASEARCHIVE) $(PATCHARCHIVE)
|
|
|
|
dist-hook: $(BASEARCHIVE) $(PATCHARCHIVE)
|
|
unzip -u $(BASEARCHIVE) -d $(DESTDIR)$(distdir)/$(basename $(BASEARCHIVE))
|
|
unzip -u $(PATCHARCHIVE) -d $(DESTDIR)$(distdir)/$(basename $(PATCHARCHIVE))
|