]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(check-misc): New rule, to ensure that no more
authorJim Meyering <jim@meyering.net>
Sat, 4 Jan 2003 08:59:15 +0000 (08:59 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 4 Jan 2003 08:59:15 +0000 (08:59 +0000)
S_IS* macro definitions sneak into the code.
(check): Depend on check-misc.

src/Makefile.am

index d14930cc66794caf9ae6122c4fbbbd6144eb2fc4..04f284c04a673af3b3495c3e3ccf71a66a686522 100644 (file)
@@ -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...