(sc_src_functions_have_static_scope): New rule.
authorJim Meyering <jim@meyering.net>
Tue, 27 Apr 2004 14:57:11 +0000 (14:57 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 27 Apr 2004 14:57:11 +0000 (14:57 +0000)
(syntax-check-rules): Add it.

Makefile.maint

index 3806016..482777e 100644 (file)
@@ -75,6 +75,7 @@ syntax-check-rules = \
   sc_prohibit_atoi_atof \
   sc_prohibit_jm_in_m4 \
   sc_space_tab \
+  sc_src_functions_have_static_scope \
   sc_sun_os_names \
   sc_system_h_headers \
   sc_trailing_blank \
@@ -92,6 +93,9 @@ syntax-check: $(syntax-check-rules)
 #          exit 1; } || :
 # FIXME: don't allow `#include .strings\.h' anywhere
 
+sc_src_functions_have_static_scope:
+       $(MAKE) -C src $@
+
 sc_cast_of_argument_to_free:
        @grep -E '\<free \(\(' $(srcdir)/{lib,src}/*.[chly] &&          \
          { echo '$(ME): don'\''t cast free argument' 1>&2;             \