From 9c19e102abfbf90cb5286c01441fec9f0b37b348 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 15 Nov 2011 17:39:44 +0700 Subject: [PATCH] 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 --- ChangeLog | 7 +++++++ top/maint.mk | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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) -- 2.11.0