summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-03-02 22:17:47 +0100
committerJim Meyering <meyering@redhat.com>2008-03-02 22:18:37 +0100
commitb22067a58289cd3eea50402b48ac51f323e77c22 (patch)
treef0887ae0813d14d3c537dccc7ae78a34df3b3fed
parentcce03822fc5b0a9ecc2fe58bd2ab66240fd0e2b1 (diff)
downloadcoreutils-b22067a58289cd3eea50402b48ac51f323e77c22.tar.xz
Fix so that out-of-tree VPATH "make dist" works, too.
* GNUmakefile: Add $(srcdir)/ prefix to git-version-gen and argument.
-rw-r--r--GNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 9f4c73d5b..49e41b7ff 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -47,7 +47,7 @@ _curr-ver := $(VERSION)
ifeq (0,$(MAKELEVEL))
_is-dist-target = $(filter dist% alpha beta major,$(MAKECMDGOALS))
ifneq (,$(_is-dist-target))
- _curr-ver := $(shell $(srcdir)/build-aux/git-version-gen \
+ _curr-ver := $(shell cd $(srcdir) && ./build-aux/git-version-gen \
$(srcdir)/.tarball-version)
ifneq ($(_curr-ver),$(VERSION))
$(info INFO: running autoreconf for new version string: $(_curr-ver))