]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
($(v_etc_file)): Define.
authorJim Meyering <jim@meyering.net>
Sat, 18 Aug 2001 15:26:24 +0000 (15:26 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 18 Aug 2001 15:26:24 +0000 (15:26 +0000)
(copyright-check): Use the new variable.
(my-distcheck): Depend on local-check so those checks are once
again run by `make distcheck'.

Makefile.maint

index e2cc7208e8529e7baba33108993da86c628486a5..7616992f37b53a073a354ececa2f491ac88b5a5c 100644 (file)
@@ -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