From 90a2295c1004f57668b491908d304a986cc87d52 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 30 Sep 2017 10:38:49 +0000 Subject: 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. --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.ac') 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) -- cgit v1.2.3