diff options
author | Jim Meyering <jim@meyering.net> | 2003-02-02 20:31:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-02-02 20:31:48 +0000 |
commit | 4ac006af695c8e66581a70585b59ba77118bd7c3 (patch) | |
tree | 7568c4a17bdc65c84e4b3e4611c5d123747423c7 | |
parent | b535cc4171cc4233558ae91a47db492f0c80e7b7 (diff) | |
download | coreutils-4ac006af695c8e66581a70585b59ba77118bd7c3.tar.xz |
(makefile_path_separator_check): New rule.
(local-check): Add it to the list.
-rw-r--r-- | Makefile.maint | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.maint b/Makefile.maint index 315e2a887..540171db2 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -52,7 +52,7 @@ 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 + changelog-check strftime-check header-check makefile_path_separator_check .PHONY: $(local-check) # Make sure C source files in src/ don't include xalloc.h directly, @@ -119,7 +119,17 @@ author_mark_check: { echo 'Makefile.maint: enclose the above strings in N_ (...)' 1>&2; \ exit 1; } || : -# Check that `make alpha' will not fail at the end of the process. +# Sometimes it is useful to change the PATH environment variable +# in Makefiles. When doing so, it's better not to use the Unix-centric +# path separator of `:', but rather the automake-provided `@PATH_SEPARATOR@'. +# It'd be better to use `find -print0 ...|xargs -0 ...', but less portable, +# and there probably aren't many projects with so many Makefile.am files +# that we'd have to worry about limits on command line length. +msg = 'Makefile.maint: Do not use `:'\'' above; use @PATH_SEPARATOR@ instead' +makefile_path_separator_check: + @grep 'PATH=.*:' `find $(srcdir) -name Makefile.am` \ + && { echo $(msg) 1>&2; exit 1; } || : + writable-files: if test -d $(release_archive_dir); then :; else \ mkdir $(release_archive_dir); \ |