summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makeconf3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makeconf b/Makeconf
index c658a149..c72287a5 100644
--- a/Makeconf
+++ b/Makeconf
@@ -448,8 +448,9 @@ dist.tar: $(DISTFILES) FORCE
# the source directory, but that must not affect the name it gets in dist.tar.
for f in $(DISTFILES); do \
if test -e "$$f"; then d=.; else d=$(srcdir); fi && \
+ if test "$(dir)" = "."; then subdir=""; else subdir="$(dir)/"; fi && \
tar --append -f $@ --owner=0 --group=0 \
- --transform=s%^%$(dist-version)/$(dir)/% -C "$$d" "$$f" \
+ --transform="s%^%$(dist-version)/$$subdir%" -C "$$d" "$$f" \
|| exit $$?; \
done