aboutsummaryrefslogtreecommitdiff
path: root/Make-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Make-dist')
-rw-r--r--Make-dist4
1 files changed, 2 insertions, 2 deletions
diff --git a/Make-dist b/Make-dist
index f0c1620654..3f5a0e3183 100644
--- a/Make-dist
+++ b/Make-dist
@@ -135,7 +135,6 @@ foo:=$(shell echo subdir foo >&2)
$(wildcard $(addsuffix .input,$(tests)) \
$(addsuffix .args,$(tests)))
+tardeps := $(strip $(+tsrcs))
-+tsrcs := $(addprefix $(tardir)/$(subdir)/,$(+tardeps))
verbose = v
@@ -143,7 +142,8 @@ verbose = v
dist: $(..)$(tardir) $(+tardeps)
@cd ..; if test -f dist.tar; then c=u; else c=c; fi; \
$(+cmdecho) "cd ..; tar $${c}h$(verbose)f dist.tar ..."; \
- tar $${c}h$(verbose)f dist.tar $(+tsrcs)
+ tar $${c}h$(verbose)f dist.tar \
+ $(addprefix $(tardir)/$(subdir)/,$(filter-out $<,$^))
else # Parent makefile.