1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 02:30:35 +02:00

(makefile-check): New rule.

(local-check): Add it.
This commit is contained in:
Jim Meyering
2003-04-06 19:06:26 +00:00
parent 0622704dce
commit e3b9de9e2f
+9 -1
View File
@@ -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 \
:; \