From: Jim Meyering Date: Wed, 5 Mar 2008 09:35:51 +0000 (+0100) Subject: Now that Makefile.maint is used in VPATH builds, too... X-Git-Tag: v6.11~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5d58041d5882689f8f9c7772a0254bb04f8fa4b;p=platform%2Fupstream%2Fcoreutils.git 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 --- diff --git a/Makefile.maint b/Makefile.maint index 07fed76..36ad409 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 = \