Fix automake for out-of-source builds

Patch by Alexander Stein <alexander.stein@informatik.tu-chemnitz.de>

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7867 4a71c877-e1ca-e34f-864e-861f7616d084
master
Christian Ohm 2009-07-19 18:02:39 +00:00 committed by Git SVN Gateway
parent d7c46a7b3f
commit 17d2c4f000
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ SUBDIRS = base mods music
stamp:
touch stamp
%.wz: % 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
@ -44,8 +44,8 @@ PATCHARCHIVE = mp.wz
CLEANFILES = $(BASEARCHIVE) $(PATCHARCHIVE)
$(BASEARCHIVE): $(BASELIST:%=$(basename $(BASEARCHIVE))/%)
$(PATCHARCHIVE): $(PATCHLIST:%=$(basename $(PATCHARCHIVE))/%)
$(BASEARCHIVE): $(BASELIST:%=$(abs_srcdir)/$(basename $(BASEARCHIVE))/%)
$(PATCHARCHIVE): $(PATCHLIST:%=$(abs_srcdir)/$(basename $(PATCHARCHIVE))/%)
nodist_pkgdata_DATA = $(BASEARCHIVE) $(PATCHARCHIVE)

View File

@ -1,7 +1,7 @@
stamp:
touch stamp
%.wz: % stamp
%.wz: $(srcdir)/% stamp
(cd $(srcdir)/$(notdir $<) && zip -ru0 $(abs_builddir)/$@ $(filter-out stamp,$(filter-out $<,$(^:$</%=%))) -x '*svn*' || [ $$? -eq 12 ] && true) # zip returns 12 on "nothing to do"
zip -T $@
rm -f stamp