aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am8
-rw-r--r--configure.ac16
-rw-r--r--doc/Makefile.am9
3 files changed, 31 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index fd18d7c3c..f54ff203f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,13 +1,21 @@
1# This Makefile.am is in the public domain 1# This Makefile.am is in the public domain
2AM_CPPFLAGS = -I$(top_srcdir)/src/include 2AM_CPPFLAGS = -I$(top_srcdir)/src/include
3 3
4# only documentation (ALL of the documentation)
4if DOCUMENTATION_ONLY 5if DOCUMENTATION_ONLY
5 SUBDIRS = doc 6 SUBDIRS = doc
6else 7else
7 SUBDIRS = m4 src po pkgconfig 8 SUBDIRS = m4 src po pkgconfig
9endif
10
11# documentation on / off switch (affects all of the documentation)
8if DOCUMENTATION 12if DOCUMENTATION
9 SUBDIRS += doc 13 SUBDIRS += doc
10endif 14endif
15
16# only manpages, needs "doc" subdir
17if INCLUDE_MANPAGES
18 SUBDIRS += doc
11endif 19endif
12 20
13if !TALER_ONLY 21if !TALER_ONLY
diff --git a/configure.ac b/configure.ac
index c23845b97..270011a1c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -376,6 +376,21 @@ else
376 AC_DEFINE([DOCUMENTATION_ONLY],[0],[Not building only the documentation]) 376 AC_DEFINE([DOCUMENTATION_ONLY],[0],[Not building only the documentation])
377fi 377fi
378 378
379# should the build process be including the manpages? (default: yes)
380AC_MSG_CHECKING(whether to include man pages)
381AC_ARG_ENABLE([include-manpages],
382 [AS_HELP_STRING([--disable-include-manpages], [Do not include the man pages in build and installation])],
383 [include_manpages=${enableval}],
384 [include_manpages=yes])
385AC_MSG_RESULT($include_manpages)
386if test "x$include_manpages" = "xyes"
387then
388 AM_CONDITIONAL([INCLUDE_MANPAGES],true)
389 AC_DEFINE([INCLUDE_MANPAGES],[1],[Including the man pages in the build and installation])
390else
391 AM_CONDITIONAL([INCLUDE_MANPAGES],false)
392 AC_DEFINE([INCLUDE_MANPAGES],[0],[Not including the man pages in the build and installation])
393fi
379 394
380# Adam shostack suggests the following for Windows: 395# Adam shostack suggests the following for Windows:
381# -D_FORTIFY_SOURCE=2 -fstack-protector-all 396# -D_FORTIFY_SOURCE=2 -fstack-protector-all
@@ -1327,6 +1342,7 @@ DATAROOTDIR=$datarootdir
1327AC_SUBST(DATAROOTDIR) 1342AC_SUBST(DATAROOTDIR)
1328 1343
1329# test for sudo 1344# test for sudo
1345# TODO: do we need to change anything for "doas" on openbsd?
1330AC_MSG_CHECKING(for sudo) 1346AC_MSG_CHECKING(for sudo)
1331AC_ARG_WITH(sudo, 1347AC_ARG_WITH(sudo,
1332 [ --with-sudo=PATH path to sudo binary (or just yes)], 1348 [ --with-sudo=PATH path to sudo binary (or just yes)],
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 4443b42f8..eb23b534b 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,9 +1,14 @@
1# This Makefile.am is in the public domain 1# This Makefile.am is in the public domain
2if DOCUMENTATION 2if DOCUMENTATION
3 SUBDIRS = man doxygen handbook tutorial 3 SUBDIRS = doxygen handbook tutorial
4endif 4endif
5
5if !DOCUMENTATION 6if !DOCUMENTATION
6 SUBDIRS = man doxygen 7 SUBDIRS = doxygen
8endif
9
10if INCLUDE_MANPAGES
11 SUBDIRS += man
7endif 12endif
8 13
9EXTRA_DIST = \ 14EXTRA_DIST = \