maint.mk: absolute VPATH build fix
authorAkim Demaille <akim@lrde.epita.fr>
Sat, 28 Jul 2012 10:40:53 +0000 (12:40 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 29 Jul 2012 11:21:03 +0000 (13:21 +0200)
* top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
$(srcdir) is not a parent of $(builddir).

ChangeLog
top/maint.mk

index aa69418..500006e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
+
+       maint.mk: absolute VPATH build fix
+       * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
+       $(srcdir) is not a parent of $(builddir).
+
 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
 
        clean-temp: Fix memory leak.
index baff0e9..2af938e 100644 (file)
@@ -1256,10 +1256,11 @@ bootstrap-tools ?= autoconf,automake,gnulib
 
 # If it's not already specified, derive the GPG key ID from
 # the signed tag we've just applied to mark this release.
-gpg_key_ID ?= \
-  $$(git cat-file tag v$(VERSION) \
-     | gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null \
-     | awk '/^\[GNUPG:\] ERRSIG / {print $$3; exit}')
+gpg_key_ID ?=                                                          \
+  $$(cd $(srcdir)                                                      \
+     && git cat-file tag v$(VERSION)                                   \
+        | gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null       \
+        | awk '/^\[GNUPG:\] ERRSIG / {print $$3; exit}')
 
 translation_project_ ?= coordinator@translationproject.org