freopen: Don't crash if the filename argument is NULL.
[gnulib.git] / Makefile
index 0da864c..cb1d7cd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,15 @@ sc_prefer_ac_check_funcs_once:
                   in modules/ 1>&2; exit 1; } || :                     \
        else :; fi
 
+sc_prohibit_leading_TABs:
+       if test -d .git; then                                           \
+         git grep -l '^ *      ' lib m4 tests                          \
+            | grep -Ev '^lib/reg|Makefile|test-update-copyright'       \
+            | grep .                                                   \
+           && { printf '*** %s\n' 'indent with spaces, not TABs;'      \
+                1>&2; exit 1; } || :                                   \
+       else :; fi
+
 sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT:
        if test -d .git; then                                           \
          url=http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/22874; \
@@ -95,7 +104,7 @@ sc_cpp_indent_check:
             $$(cd ./modules; grep -ilrE '(meyering|blake)' .) \
           | sort -u \
           | grep '\.c$$' \
-          | grep -v '/getloadavg\.c$$' \
+          | grep -vE '/(stdio-(read|write)|getloadavg)\.c$$' \
           | xargs cppi -c
 
 # Ensure that the list of symbols checked for by the