[libgpg-error PATCH 3/3] configure: add an option to disable tests
Yann E. MORIN
yann.morin.1998 at free.fr
Sat Jul 9 16:24:19 CEST 2016
All,
On 2016-07-09 14:05 +0200, Yann E. MORIN spake thusly:
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> ---
> Makefile.am | 8 +++++++-
> configure.ac | 5 +++++
> 2 files changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index baeba14..7cfbeef 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -39,7 +39,13 @@ else
> doc =
> endif
>
> -SUBDIRS = m4 src $(doc) tests po $(lang_subdirs)
> +if BUILD_TESTS
> +doc = doc
> +else
> +doc =
> +endif
Meh... s/doc/tests/
I forgot to amend the commit before sending the patches. I'll resubmit
a bit later, to let some time for others to review the series.
Sorry for the noise...
Regards,
Yann E. MORIN.
> +SUBDIRS = m4 src $(doc) $(tests) po $(lang_subdirs)
>
>
> dist-hook: gen-ChangeLog
> diff --git a/configure.ac b/configure.ac
> index 682fd84..d19943d 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -533,6 +533,11 @@ AC_ARG_ENABLE([doc], AC_HELP_STRING([--disable-doc],
> build_doc=$enableval, build_doc=yes)
> AM_CONDITIONAL([BUILD_DOC], [test "x$build_doc" != xno])
>
> +build_tests=yes
> +AC_ARG_ENABLE([tests], AC_HELP_STRING([--disable-tests],
> + [do not build the tests]),
> + build_tests=$enableval, build_tests=yes)
> +AM_CONDITIONAL([BUILD_TESTS], [test "x$build_tests" != xno])
>
> #
> # Substitution
> --
> 2.7.4
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the Gnupg-devel
mailing list