From 8e1cd766491549d84fd922f0b8772d78c44da59a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Thu, 6 Oct 2005 20:35:55 +0200 Subject: [PATCH] (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 --- ChangeLog | 6 ++++++ Makefile.in | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b3e542f..14a8ca90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-06 Niels M�ller <nisse@lysator.liu.se> + + * 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 <nisse@lysator.liu.se> * 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" ; \ -- GitLab