From: Jim Meyering Date: Sat, 9 Sep 2006 15:58:36 +0000 (+0000) Subject: * Makefile.maint (sc_require_config_h): Skip this test if there are no version- X-Git-Tag: v6.2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77d7a11b2f0851286fee1d33a70682390fb8ffdf;p=thirdparty%2Fcoreutils.git * Makefile.maint (sc_require_config_h): Skip this test if there are no version- controlled .c files. --- diff --git a/ChangeLog b/ChangeLog index 396779cc56..5739850ee6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * Makefile.maint (sc_prohibit_jm_in_m4): Don't hang when there are no .m4 files. + (sc_require_config_h): Skip this test if there are no version- + controlled .c files. 2006-09-08 Jim Meyering diff --git a/Makefile.maint b/Makefile.maint index ef8a621a86..33643ee390 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -147,11 +147,14 @@ sc_no_have_config_h: # Nearly all .c files must include . sc_require_config_h: - @grep -L '^# *include ' \ + @if $(CVS_LIST_EXCEPT) | grep '\.c$$'; then \ + grep -L '^# *include ' \ $$($(CVS_LIST_EXCEPT) | grep '\.c$$') \ - | grep . && \ + | grep . && \ { echo '$(ME): the above files do not include ' \ - 1>&2; exit 1; } || : + 1>&2; exit 1; } || :; \ + else :; \ + fi # Prohibit the inclusion of assert.h without an actual use of assert. sc_prohibit_assert_without_use: