This should almost make it possible to pass --enable-documentation-only
authorNils Gillmann <ng0@n0.is>
Sat, 31 Mar 2018 10:54:26 +0000 (10:54 +0000)
committerNils Gillmann <ng0@n0.is>
Sat, 31 Mar 2018 10:54:26 +0000 (10:54 +0000)
Signed-off-by: Nils Gillmann <ng0@n0.is>
Makefile.am
configure.ac

index 41967a5138612ee9561c500615a2412828771190..6864b49561b0db04bb214664aff0bb246f1a8889 100644 (file)
@@ -7,6 +7,10 @@ if !TALER_ONLY
   SUBDIRS += contrib
 endif
 
+if DOCUMENTATION_ONLY
+  SUBDIRS = doc
+endif
+
 EXTRA_DIST = \
  ABOUT-NLS \
  config.rpath \
index 881262cbe995f4c74c481b2018130cbb55116d3c..668ac75290da908ac5e114b48edacb7d9b160581 100644 (file)
@@ -611,6 +611,22 @@ else
   AC_DEFINE([DOCUMENTATION],[0],[Not building the documentation])
 fi
 
+# should the build process be building only the documentation?
+AC_MSG_CHECKING(whether to build only documentation)
+AC_ARG_ENABLE([documentation-only],
+   [AS_HELP_STRING([--enable-documentation-only], [build only the documentation])],
+   [documentation_only=${enableval}],
+   [documentation_only=no])
+AC_MSG_RESULT($documentation_only)
+if test "x$documentation_only" = "xyes"
+then
+  AM_CONDITIONAL([DOCUMENTATION_ONLY],true)
+  AC_DEFINE([DOCUMENTATION_ONLY],[1],[Building only the documentation])
+else
+  AM_CONDITIONAL([DOCUMENTATION_ONLY],false)
+  AC_DEFINE([DOCUMENTATION_ONLY],[0],[Not building only the documentation])
+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)