maint.mk: suppress a syntax check false positive
[gnulib.git] / Makefile
index c3bf4a9..9c0d0c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,16 @@ sc_pragma_columns:
                 exit 1; } || :;                                        \
        else :; fi
 
+# Verify that certain (for now, only Jim Meyering and Eric Blake's)
+# *.c files are consistently cpp indented.
+sc_cpp_indent_check:
+       ./gnulib-tool --extract-filelist \
+            $$(cd ./modules; grep -ilrE '(meyering|blake)' .) \
+          | sort -u \
+          | grep '\.c$$' \
+          | grep -v '/getloadavg\.c$$' \
+          | xargs cppi -c
+
 # Regenerate some files that are stored in the repository.
 regen: MODULES.html