changeset 16896:e52a7cef746b

maint.mk: fix VPATH issues. * top/maint.mk (news-check): GNU Make understand $< very well. (release-prep): NEWS is in $(srcdir).
author Akim Demaille <akim@lrde.epita.fr>
date Thu, 07 Jun 2012 12:21:36 +0200
parents 4944e80b7bc2
children c460072fb428
files ChangeLog top/maint.mk
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1059,7 +1059,7 @@
 	  && { 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 @@
 	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