From: Jim Meyering Date: Sun, 6 Apr 2003 19:06:26 +0000 (+0000) Subject: (makefile-check): New rule. X-Git-Tag: v5.0.1~808 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3b9de9e2f2a0d0d6076517496d2c8cb4e67a105;p=thirdparty%2Fcoreutils.git (makefile-check): New rule. (local-check): Add it. --- diff --git a/Makefile.maint b/Makefile.maint index b2b5a56f5d..0816abadcf 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -50,7 +50,8 @@ release_archive_dir ?= ../release # new ChangeLog entries. local-check = \ po-check copyright-check writable-files m4-check author_mark_check \ - changelog-check strftime-check header-check makefile_path_separator_check + changelog-check strftime-check header-check makefile_path_separator_check \ + makefile-check .PHONY: $(local-check) # Make sure C source files in src/ don't include xalloc.h directly, @@ -78,6 +79,13 @@ strftime-check: rm -f $@-src $@-info; \ fi +# Ensure that we use only the standard $(VAR) notation, +# not @...@ in Makefile.am, now that we can rely on automake +# to emit a definition for each substituted variable. +makefile-check: + grep -E '@[A-Z_]+@' `find . -name Makefile.am` \ + && { echo 'Makefile.maint: use $(...), not @...@' 1>&2; exit 1; } || : + changelog-check: if head ChangeLog | grep 'Version $(VERSION)' >/dev/null; then \ :; \