diff options
author | ng0 <ng0@infotropique.org> | 2017-09-30 10:38:49 +0000 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-09-30 10:38:49 +0000 |
commit | 90a2295c1004f57668b491908d304a986cc87d52 (patch) | |
tree | 02279ffe562adc56bc771cf65450070819973870 /configure.ac | |
parent | dc629f387ee54f67286ae22fe73b8f4498e0e8d6 (diff) |
build-process: pass '--enable-documentation' to ONLY build the documentation.
This obviously defaults to NO.
Furthermore add DISTCLEANFILES to 'doc/Makefile.am'.
Adjust contrib/packages/guix/gnunet-doc.scm to it.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 101fc77cb..9d1fb9ab3 100644 --- a/configure.ac +++ b/configure.ac @@ -565,6 +565,23 @@ AC_CHECK_LIB([kvm],[kvm_open]) AC_CHECK_LIB([kstat],[kstat_open]) +# should the build process be restricted to only building +# the documentation? +AC_MSG_CHECKING(whether to build documentation ONLY) +AC_ARG_ENABLE([documentation], + [AS_HELP_STRING([--enable-documentation], [only build the documentation])], + [doc_only=${enableval}], + [doc_only=no]) +AC_MSG_RESULT($doc_only) +if test "x$doc_only" = "xyes" +then + AM_CONDITIONAL([DOC_ONLY],true) + AC_DEFINE([DOC_ONLY],[1],[Building the documentation]) +else + AM_CONDITIONAL([DOC_ONLY],false) + AC_DEFINE([DOC_ONLY],[0],[Canonical compilation]) +fi + # should the build process be restricted to the code required # for GNU Taler wallets? AC_MSG_CHECKING(whether to compile GNU Taler Wallet library ONLY) |