From: Ian Beckwith Date: Mon, 26 Apr 2010 07:26:35 +0000 (+0200) Subject: build: avoid "make check" failure without .git/ directory X-Git-Tag: v0.1~4217 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=3552ea714b8a640d547de5783b394f08be252ae0;p=gnulib.git build: avoid "make check" failure without .git/ directory * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when there is no .git/ directory. --- diff --git a/ChangeLog b/ChangeLog index 9208e2fdd..8d6acc051 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-24 Ian Beckwith + + build: avoid "make check" failure without .git/ directory + * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when + there is no .git/ directory. + 2010-04-25 Bruno Haible ptsname: Fix misuse of ttyname_r. diff --git a/Makefile b/Makefile index d2878d649..0596ba6a5 100644 --- a/Makefile +++ b/Makefile @@ -16,9 +16,11 @@ info html dvi pdf: check: sc_prefer_ac_check_funcs_once sc_prefer_ac_check_funcs_once: - git grep -w -l AC_CHECK_FUNCS modules && \ - { echo use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/ 1>&2; \ - exit 1; } || : + if test -d .git; then \ + git grep -w -l AC_CHECK_FUNCS modules \ + && { echo use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS \ + in modules/ 1>&2; exit 1; } || : \ + else :; fi # Regenerate some files that are stored in the repository. regen: MODULES.html