From f5d58041d5882689f8f9c7772a0254bb04f8fa4b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 5 Mar 2008 10:35:51 +0100 Subject: [PATCH] Now that Makefile.maint is used in VPATH builds, too... * Makefile.maint (prev_version_file): Prefix with $(srcdir)/. (syntax-check-rules): Prefix $(ME) with $(srcdir)/. Signed-off-by: Jim Meyering --- Makefile.maint | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.maint b/Makefile.maint index 07fed761e8..36ad409dcf 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -38,7 +38,7 @@ CVS_LIST_EXCEPT = \ $(CVS_LIST) | if test -f .x-$@; then grep -vEf .x-$@; else grep -v ChangeLog; fi ifeq ($(origin prev_version_file), undefined) - prev_version_file = .prev-version + prev_version_file = $(srcdir)/.prev-version endif PREV_VERSION := $(shell cat $(prev_version_file)) @@ -69,7 +69,8 @@ export LC_ALL = C ## --------------- ## # Collect the names of rules starting with `sc_'. -syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(ME)) +syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' \ + $(srcdir)/$(ME)) .PHONY: $(syntax-check-rules) local-checks-available = \ -- 2.47.3