diff top/maint.mk @ 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 cb54ca844f1c
children 2311514e2d84
line wrap: on
line diff
--- 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