From: Jim Meyering Date: Sat, 4 Jan 2003 08:59:15 +0000 (+0000) Subject: (check-misc): New rule, to ensure that no more X-Git-Tag: v4.5.5~353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10a0b7c14d81b539322f1b1e0a6b5163d4eaf9e0;p=thirdparty%2Fcoreutils.git (check-misc): New rule, to ensure that no more S_IS* macro definitions sneak into the code. (check): Depend on check-misc. --- diff --git a/src/Makefile.am b/src/Makefile.am index d14930cc66..04f284c04a 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...