diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-03-24 13:49:51 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2010-03-24 13:50:49 +0100 |
commit | 0fb0ec0c7969a1379edbf0c3b9c26927b8ffd560 (patch) | |
tree | d13958030f84b9ebba60005151dd8a5e6770ff4e /top | |
parent | 4cbc2a7a6dc6ff05b9d70af8d3cee71426b5409b (diff) | |
download | gnulib-0fb0ec0c7969a1379edbf0c3b9c26927b8ffd560.tar.gz |
maint.mk (sc_Wundef_boolean): Skip test if no config.h.
Signed-off-by: Simon Josefsson <simon@josefsson.org>
Diffstat (limited to 'top')
-rw-r--r-- | top/maint.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/top/maint.mk b/top/maint.mk index 67421f2bb2..09da20afc8 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -766,8 +766,9 @@ sc_copyright_check: # tests many undefined macros, and so we can't enable that option. # So at least preclude common boolean strings as macro values. sc_Wundef_boolean: - @grep -Ei '^#define.*(yes|no|true|false)$$' '$(CONFIG_INCLUDE)' && \ - { echo 'Use 0 or 1 for macro values' 1>&2; exit 1; } || : + @test -e '$(CONFIG_INCLUDE)' && \ + grep -Ei '^#define.*(yes|no|true|false)$$' '$(CONFIG_INCLUDE)' && \ + { echo 'Use 0 or 1 for macro values' 1>&2; exit 1; } || : sc_vulnerable_makefile_CVE-2009-4029: @files=$$(find $(srcdir) -name Makefile.in); \ |