From 10a0b7c14d81b539322f1b1e0a6b5163d4eaf9e0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 4 Jan 2003 08:59:15 +0000 Subject: [PATCH] (check-misc): New rule, to ensure that no more S_IS* macro definitions sneak into the code. (check): Depend on check-misc. --- src/Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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... -- 2.47.2