summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-18 15:26:24 +0000
committerJim Meyering <jim@meyering.net>2001-08-18 15:26:24 +0000
commit1a6915b4d85447b35e9ff790926aa90647fec18a (patch)
tree5f089b720abf41c71e733600f6bd04c37c1b1643 /Makefile.maint
parent4bc8a7b528dd4f61d2c7e949ad2c0e98beb1644f (diff)
downloadcoreutils-1a6915b4d85447b35e9ff790926aa90647fec18a.tar.xz
($(v_etc_file)): Define.
(copyright-check): Use the new variable. (my-distcheck): Depend on local-check so those checks are once again run by `make distcheck'.
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile.maint b/Makefile.maint
index e2cc7208e..7616992f3 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -101,12 +101,14 @@ writable-files:
done; \
test "$$fail" && exit 1 || :
-# Make sure that the copyright date in lib/version-etc.c is up to date.
+v_etc_file = lib/version-etc.c
+# Make sure that the copyright date in $(v_etc_file) is up to date.
copyright-check:
- @if test -f lib/version-etc.c; then \
- grep 'N_("Copyright (C) $(shell date +%Y) Free' lib/version-etc.c \
+ @if test -f $(v_etc_file); then \
+ grep 'N_("Copyright (C) $(shell date +%Y) Free' $(v_etc_file) \
>/dev/null \
- || { echo 'out of date copyright in $<; update it' 1>&2; exit 1; }; \
+ || { echo 'out of date copyright in $(v_etc_file); update it' 1>&2; \
+ exit 1; }; \
fi
@@ -156,7 +158,7 @@ null_AM_MAKEFLAGS = \
# and building with CFLAGS='-Wformat -Werror' causes any format warning to be
# treated as a failure.
t=./=test
-my-distcheck: writable-files po-check
+my-distcheck: local-check
-rm -rf $(t)
mkdir $(t)
GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz