summaryrefslogtreecommitdiff
path: root/top/GNUmakefile
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-06-18 22:33:37 -0600
committerEric Blake <ebb9@byu.net>2008-06-18 22:43:16 -0600
commit5f9c828ed31bd100bd3dc4356b644828a2b8fe68 (patch)
tree043539637c39ec476583bcbb38c766cf1eb25ba3 /top/GNUmakefile
parent640cd5a77a3e334811fe60f6bbc0ae215854b91a (diff)
downloadgnulib-5f9c828ed31bd100bd3dc4356b644828a2b8fe68.tar.gz
Fix VPATH 'make dist' with GNU make and non-VCS tarball.
* top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily. Reported by Stepan Kasal. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'top/GNUmakefile')
-rw-r--r--top/GNUmakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/top/GNUmakefile b/top/GNUmakefile
index 062900b547..31bd873fad 100644
--- a/top/GNUmakefile
+++ b/top/GNUmakefile
@@ -56,8 +56,8 @@ ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL))
_is-dist-target = $(filter-out %clean, \
$(filter maintainer-% dist% alpha beta major,$(MAKECMDGOALS)))
ifneq (,$(_is-dist-target))
- _curr-ver := $(shell cd $(srcdir) && ./$(_build-aux)/git-version-gen \
- $(srcdir)/.tarball-version)
+ _curr-ver := $(shell cd $(srcdir) \
+ && $(_build-aux)/git-version-gen .tarball-version)
ifneq ($(_curr-ver),$(VERSION))
ifeq ($(_curr-ver),UNKNOWN)
$(info WARNING: unable to verify if $(VERSION) is correct version)