From: Niels Möller Date: Thu, 6 Oct 2005 18:35:55 +0000 (+0200) Subject: (distdir): Use a loop to pick up the contents of X-Git-Tag: nettle_1.13_release_20051006~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e1cd766491549d84fd922f0b8772d78c44da59a;p=thirdparty%2Fnettle.git (distdir): Use a loop to pick up the contents of $(DISTFILES) from source and build directories. For some reason, $? failed to find stamp-h.in in the source directory. Rev: src/nettle/ChangeLog:1.333 Rev: src/nettle/Makefile.in:1.23 --- diff --git a/ChangeLog b/ChangeLog index 6b3e542f..14a8ca90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-06 Niels Möller + + * Makefile.in (distdir): Use a loop to pick up the contents of + $(DISTFILES) from source and build directories. For some reason, + $? failed to find stamp-h.in in the source directory. + 2005-10-05 Niels Möller * x86/aes-decrypt.asm: Use C_NAME(_nettle_aes_decrypt_table) when diff --git a/Makefile.in b/Makefile.in index 5cfc94d7..427e4806 100644 --- a/Makefile.in +++ b/Makefile.in @@ -271,7 +271,11 @@ top_distdir = $(distdir) distdir: $(DISTFILES) rm -rf "$(distdir)" mkdir "$(distdir)" - cp $? "$(distdir)" + set -e; for f in $(DISTFILES) ; do \ + if [ -e "$$f" ] ; then cp "$$f" "$(distdir)" ; \ + else cp "$(srcdir)/$$f" "$(distdir)" ; \ + fi ; \ + done set -e; for d in sparc x86 ; do \ mkdir "$(distdir)/$$d" ; \ cp $(srcdir)/$$d/*.asm $(srcdir)/$$d/*.m4 "$(distdir)/$$d" ; \