The announcement target of maint.mk failed unnecessarily in a VPATH tree.
  I noticed this while syncing modern gnulib maint.mk into autoconf, which
already had this patch:

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net
From aab6ab6d121b644d99c3cf63901163e3bef3dc54 Mon Sep 17 00:00:00 2001
From: Eric Blake <e...@byu.net>
Date: Tue, 5 Jan 2010 21:23:08 -0700
Subject: [PATCH] maint: support 'make announcement' from a VPATH build

* top/maint.mk (announcement): Look for correct NEWS file.

Signed-off-by: Eric Blake <e...@byu.net>
---
 ChangeLog    |    5 +++++
 top/maint.mk |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2d78186..1d1638e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-05  Eric Blake  <e...@byu.net>
+
+       maint: support 'make announcement' from a VPATH build
+       * top/maint.mk (announcement): Look for correct NEWS file.
+
 2009-11-17  Eric Blake  <e...@byu.net>

        manywarnings: add more warnings
diff --git a/top/maint.mk b/top/maint.mk
index e4a6359..40f306e 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -707,7 +707,7 @@ announcement: NEWS ChangeLog $(rel-files)
            --prev=$(PREV_VERSION)                                      \
            --curr=$(VERSION)                                           \
            --gpg-key-id=$(gpg_key_ID)                                  \
-           --news=NEWS                                                 \
+           --news=$(srcdir)/NEWS                                       \
            --bootstrap-tools=$(bootstrap-tools)                        \
            --gnulib-version=$(gnulib-version)                          \
            --no-print-checksums                                        \
-- 
1.6.4.2

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to