From 1a6915b4d85447b35e9ff790926aa90647fec18a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 18 Aug 2001 15:26:24 +0000 Subject: ($(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'. --- Makefile.maint | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Makefile.maint') 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 -- cgit v1.2.3-54-g00ecf