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-861f7616d084master
parent
d7c46a7b3f
commit
17d2c4f000
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue