From: Gary V. Vaughan Date: Tue, 15 Nov 2011 10:39:44 +0000 (+0700) Subject: maint.mk: fix tight-scope.mk generation in VPATH builds. X-Git-Tag: v0.1~1438 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=9c19e102abfbf90cb5286c01441fec9f0b37b348 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 --- diff --git a/ChangeLog b/ChangeLog index 962b2c4aa..fd103f95b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-11-15 Gary V. Vaughan + + 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 Jim Meyering diff --git a/top/maint.mk b/top/maint.mk index d2f5830c7..76844a079 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -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)