Mercurial > hg > octave-lojdl > gnulib-hg
changeset 13270:f36dcb5c4dae
build: avoid "make check" failure without .git/ directory
* Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
there is no .git/ directory.
author | Ian Beckwith <ianb@erislabs.net> |
---|---|
date | Mon, 26 Apr 2010 09:26:35 +0200 |
parents | 7dbe916e9b3f |
children | b18fb24cf606 |
files | ChangeLog Makefile |
diffstat | 2 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-24 Ian Beckwith <ianb@erislabs.net> + + 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 <bruno@clisp.org> ptsname: Fix misuse of ttyname_r.
--- a/Makefile +++ b/Makefile @@ -16,9 +16,11 @@ 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