diff options
author | Ian Beckwith <ianb@erislabs.net> | 2010-04-26 09:26:35 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-26 09:29:45 +0200 |
commit | 3552ea714b8a640d547de5783b394f08be252ae0 (patch) | |
tree | 8f1fdceb7cdfb26ed0395957ded32e8d74b35e43 /Makefile | |
parent | 1534c83a9aef13ea3d292ebc353f3897dfd57986 (diff) | |
download | gnulib-3552ea714b8a640d547de5783b394f08be252ae0.tar.gz |
build: avoid "make check" failure without .git/ directory
* Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
there is no .git/ directory.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |