summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-03-05 10:35:51 +0100
committerJim Meyering <meyering@redhat.com>2008-03-05 10:36:21 +0100
commitf5d58041d5882689f8f9c7772a0254bb04f8fa4b (patch)
tree61fce324b8b2d57601e3e732bee29f1eaf3d57c3 /Makefile.maint
parentc7d33788e02259c43bfe33815626018be88127a7 (diff)
downloadcoreutils-f5d58041d5882689f8f9c7772a0254bb04f8fa4b.tar.xz
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 <meyering@redhat.com>
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.maint b/Makefile.maint
index 07fed761e..36ad409dc 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 = \