summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d2878d6493..0596ba6a57 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