diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-04 08:59:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-04 08:59:15 +0000 |
commit | 10a0b7c14d81b539322f1b1e0a6b5163d4eaf9e0 (patch) | |
tree | 05f01908a4b1fe2ecce5ea36691fe3dda6d51d21 /src | |
parent | 33ca4e1f5ad3e6b0dd9de429ba92664841bc6f07 (diff) | |
download | coreutils-10a0b7c14d81b539322f1b1e0a6b5163d4eaf9e0.tar.xz |
(check-misc): New rule, to ensure that no more
S_IS* macro definitions sneak into the code.
(check): Depend on check-misc.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index d14930cc6..04f284c04 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -193,7 +193,7 @@ pm = progs-makefile pr = progs-readme # Ensure that the list of programs in README matches the list # of programs we can build. -check: check-README +check: check-README check-misc .PHONY: check-README check-README: rm -rf $(pr) $(pm) @@ -203,6 +203,12 @@ check-README: | sed -n '/^ */s///p' | tr -s ' ' '\n' > $(pr) diff $(pm) $(pr) && rm -rf $(pr) $(pm) +# Make sure we don't define any S_IS* macros in src/*.c files. +# Not a big deal, but they're already defined via system.h. +.PHONY: check-misc +check-misc: + grep '^# *define *S_IS' $(SOURCES) && exit 1 || : + # Extract the list of authors from each file. sed_filter = s/^ *//;s/N_ (//;s/^"//;s/")*$$// # Sometimes the string is on the same line as the #define... |