summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-04-10 17:59:50 +0200
committerLudovic Courtès <ludo@gnu.org>2012-04-10 17:59:50 +0200
commit69bd9b1d600debf7b758cc7f8353b747430259b4 (patch)
tree85417c05d0646b12b3aebf62ea36bb39fbc7d8e2
parent76c738d53b1ade45bb82a68aff692ab277fa0442 (diff)
dist: Remove redundant "./" for top-level $(DISTFILES)
* Makeconf (dist.tar): When $(dir) is ".", avoid adding "./" to the resulting file name.
-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