aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-06-17 10:08:32 +1000
committerSteve Bennett <steveb@workware.net.au>2011-06-17 11:27:49 +1000
commit286798b4ee2d7c0b5c5b790a8c991b650204eb34 (patch)
treebd14649f6fe4847388f5d332b12585cda9e104e9
parent142edb4e35a90c316564ec1aacf6dde9ec5861cb (diff)
downloadjimtcl-286798b4ee2d7c0b5c5b790a8c991b650204eb34.zip
jimtcl-286798b4ee2d7c0b5c5b790a8c991b650204eb34.tar.gz
jimtcl-286798b4ee2d7c0b5c5b790a8c991b650204eb34.tar.bz2
Fix the distdir target when building out of tree
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r--Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 256dbee..d8dd4e8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -117,9 +117,10 @@ EMPTY_AUTOMAKE_TARGETS := dvi pdf ps info html tags ctags mostlyclean maintainer
.PHONY: $(EMPTY_AUTOMAKE_TARGETS)
$(EMPTY_AUTOMAKE_TARGETS):
-# automake compatibilty - install sources from $(srcdir) to $(distdir)
+# automake compatibilty - install sources from the current dir to $(distdir)
+distdir_full := $(shell cd $(distdir); pwd)
distdir:
- ( test -z "$(srcdir)" || cd "$(srcdir)"; git ls-files ) | cpio -pdmu $(distdir)
+ cd "@srcdir@"; git ls-files | cpio -pdmu $(distdir_full)
ifeq ($(findstring clean,$(MAKECMDGOALS)),)
Makefile: @AUTODEPS@ @srcdir@/Makefile.in