Fix VPATH 'make dist' with GNU make and non-VCS tarball.
authorEric Blake <ebb9@byu.net>
Thu, 19 Jun 2008 04:33:37 +0000 (22:33 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 19 Jun 2008 04:43:16 +0000 (22:43 -0600)
* top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
Reported by Stepan Kasal.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
top/GNUmakefile

index 6fd6362..d84e497 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-19  Eric Blake  <ebb9@byu.net>
+
+       Fix VPATH 'make dist' with GNU make and non-VCS tarball.
+       * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
+       Reported by Stepan Kasal.
+
 2008-06-18  Bruno Haible  <bruno@clisp.org>
 
        * lib/fatal-signal.c (init_fatal_signals): Add comment.
index 062900b..31bd873 100644 (file)
@@ -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)