changeset 16088:780e83599399

maint.mk: fix tight-scope.mk generation in VPATH builds. * top/maint.mk (tight-scope.mk): Make sure to prefix file reference with $(srcdir) so that the file is found correctly even when running `make syntax-check' in a VPATH build. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
author Gary V. Vaughan <gary@gnu.org>
date Tue, 15 Nov 2011 17:39:44 +0700
parents c7f91e785206
children 592c7f4c8a2a
files ChangeLog top/maint.mk
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-11-15  Gary V. Vaughan  <gary@gnu.org>
+
+	maint.mk: fix tight-scope.mk generation in VPATH builds.
+	* top/maint.mk (tight-scope.mk): Make sure to prefix file
+	reference with $(srcdir) so that the file is found correctly even
+	when running `make syntax-check' in a VPATH build.
+
 2011-11-13  Bruno Haible  <bruno@clisp.org>
 	    Jim Meyering  <meyering@redhat.com>
 
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1438,7 +1438,7 @@
 
 tight-scope.mk: $(ME)
 	@rm -f $@ $@-t
-	@perl -ne '/^# TS-start/.../^# TS-end/ and print' $(ME) > $@-t
+	@perl -ne '/^# TS-start/.../^# TS-end/ and print' $(srcdir)/$(ME) > $@-t
 	@chmod a=r $@-t && mv $@-t $@
 
 ifeq (a,b)