maint.mk: fix tight-scope.mk generation in VPATH builds.
authorGary V. Vaughan <gary@gnu.org>
Tue, 15 Nov 2011 10:39:44 +0000 (17:39 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 15 Nov 2011 13:23:00 +0000 (20:23 +0700)
* 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>
ChangeLog
top/maint.mk

index 962b2c4..fd103f9 100644 (file)
--- 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>
 
index d2f5830..76844a0 100644 (file)
@@ -1438,7 +1438,7 @@ sc_tight_scope: tight-scope.mk
 
 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)