diff options
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 41967a513..6864b4956 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -7,6 +7,10 @@ if !TALER_ONLY | |||
7 | SUBDIRS += contrib | 7 | SUBDIRS += contrib |
8 | endif | 8 | endif |
9 | 9 | ||
10 | if DOCUMENTATION_ONLY | ||
11 | SUBDIRS = doc | ||
12 | endif | ||
13 | |||
10 | EXTRA_DIST = \ | 14 | EXTRA_DIST = \ |
11 | ABOUT-NLS \ | 15 | ABOUT-NLS \ |
12 | config.rpath \ | 16 | config.rpath \ |
diff --git a/configure.ac b/configure.ac index 881262cbe..668ac7529 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -611,6 +611,22 @@ else | |||
611 | AC_DEFINE([DOCUMENTATION],[0],[Not building the documentation]) | 611 | AC_DEFINE([DOCUMENTATION],[0],[Not building the documentation]) |
612 | fi | 612 | fi |
613 | 613 | ||
614 | # should the build process be building only the documentation? | ||
615 | AC_MSG_CHECKING(whether to build only documentation) | ||
616 | AC_ARG_ENABLE([documentation-only], | ||
617 | [AS_HELP_STRING([--enable-documentation-only], [build only the documentation])], | ||
618 | [documentation_only=${enableval}], | ||
619 | [documentation_only=no]) | ||
620 | AC_MSG_RESULT($documentation_only) | ||
621 | if test "x$documentation_only" = "xyes" | ||
622 | then | ||
623 | AM_CONDITIONAL([DOCUMENTATION_ONLY],true) | ||
624 | AC_DEFINE([DOCUMENTATION_ONLY],[1],[Building only the documentation]) | ||
625 | else | ||
626 | AM_CONDITIONAL([DOCUMENTATION_ONLY],false) | ||
627 | AC_DEFINE([DOCUMENTATION_ONLY],[0],[Not building only the documentation]) | ||
628 | fi | ||
629 | |||
614 | # should the build process be restricted to the code required | 630 | # should the build process be restricted to the code required |
615 | # for GNU Taler wallets? | 631 | # for GNU Taler wallets? |
616 | AC_MSG_CHECKING(whether to compile GNU Taler Wallet library ONLY) | 632 | AC_MSG_CHECKING(whether to compile GNU Taler Wallet library ONLY) |