diff top/maint.mk @ 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 8063ffd1fa6d
children 456f788a2768
line wrap: on
line diff
--- a/top/maint.mk	Sun Nov 13 21:20:59 2011 +0100
+++ b/top/maint.mk	Tue Nov 15 17:39:44 2011 +0700
@@ -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)