maint.mk: fix VPATH issues.
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 7 Jun 2012 10:21:36 +0000 (12:21 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 7 Jun 2012 11:35:39 +0000 (13:35 +0200)
* top/maint.mk (news-check): GNU Make understand $< very well.
(release-prep): NEWS is in $(srcdir).

ChangeLog
top/maint.mk

index 08285b8..cca5fe7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
+
+       maint.mk: fix VPATH issues.
+       * top/maint.mk (news-check): GNU Make understand $< very well.
+       (release-prep): NEWS is in $(srcdir).
+
 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
 
        readme-release: require the promoted modules.
index 11cb6a6..f0b889b 100644 (file)
@@ -1059,7 +1059,7 @@ sc_makefile_at_at_check:
          && { echo '$(ME): use $$(...), not @...@' 1>&2; exit 1; } || :
 
 news-check: NEWS
-       if sed -n $(news-check-lines-spec)p $(srcdir)/NEWS              \
+       if sed -n $(news-check-lines-spec)p $<                          \
            | grep -E $(news-check-regexp) >/dev/null; then             \
          :;                                                            \
        else                                                            \
@@ -1367,7 +1367,7 @@ release-prep:
        fi
        echo $(VERSION) > $(prev_version_file)
        $(MAKE) update-NEWS-hash
-       perl -pi -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"' NEWS
+       perl -pi -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"' $(srcdir)/NEWS
        $(emit-commit-log) > .ci-msg
        $(VC) commit -F .ci-msg -a
        rm .ci-msg