diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-06-17 10:08:32 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-06-17 11:27:49 +1000 |
commit | 286798b4ee2d7c0b5c5b790a8c991b650204eb34 (patch) | |
tree | bd14649f6fe4847388f5d332b12585cda9e104e9 | |
parent | 142edb4e35a90c316564ec1aacf6dde9ec5861cb (diff) | |
download | jimtcl-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.in | 5 |
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 |