VPATH fix.
authorEric Blake <ebb9@byu.net>
Thu, 20 Mar 2008 15:24:13 +0000 (09:24 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 20 Mar 2008 15:24:13 +0000 (09:24 -0600)
* build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.

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

index 490b40e7542faf1f9d5ee400fdc004855b349e89..4d31c2a131d7cbbfbdda731ceb3b2a618b2e87b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-20  Eric Blake  <ebb9@byu.net>
+
+       VPATH fix.
+       * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
+
 2008-03-20  Simon Josefsson  <simon@josefsson.org>
 
        * build-aux/GNUmakefile: Make git-version-gen optional.  Add
index a9d6196dad135569171ad00ad47732e462b1b0ae..d30f13b5051a0bf23f1eeebd2957d528fb0fb88e 100644 (file)
@@ -40,18 +40,17 @@ export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
 
 include Makefile
 
-# Allow cfg.mk to override this.
-_build-aux ?= build-aux
-
 # Some projects override e.g., _autoreconf here.
 -include $(srcdir)/cfg.mk
 include $(srcdir)/maint.mk
 
+# Allow cfg.mk to override these.
+_build-aux ?= build-aux
 _autoreconf ?= autoreconf
 
 # Ensure that $(VERSION) is up to date for dist-related targets, but not
 # for others: rerunning autoreconf and recompiling everything isn't cheap.
-_have-git-version-gen := $(shell test -f ./$(_build-aux)/git-version-gen && echo yes)
+_have-git-version-gen := $(shell test -f $(srcdir)/$(_build-aux)/git-version-gen && echo yes)
 ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL))
   _is-dist-target = $(filter-out %clean, \
     $(filter dist% alpha beta major,$(MAKECMDGOALS)))