55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
SUBDIRS = base mods music
|
|
|
|
stamp:
|
|
touch stamp
|
|
|
|
%.wz: % 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 = \
|
|
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
|
|
|
|
BASEARCHIVE = base.wz
|
|
PATCHARCHIVE = mp.wz
|
|
|
|
CLEANFILES = $(BASEARCHIVE) $(PATCHARCHIVE)
|
|
|
|
$(BASEARCHIVE): $(BASELIST:%=$(basename $(BASEARCHIVE))/%)
|
|
$(PATCHARCHIVE): $(PATCHLIST:%=$(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))
|