aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap2
-rw-r--r--configure.ac19
-rw-r--r--doc/Makefile.am14
3 files changed, 16 insertions, 19 deletions
diff --git a/bootstrap b/bootstrap
index cee9a1ff7..3fa6e67ad 100755
--- a/bootstrap
+++ b/bootstrap
@@ -90,7 +90,7 @@ check_libtool()
90sphinx () 90sphinx ()
91{ 91{
92 # Bootstrap Sphinx documentation 92 # Bootstrap Sphinx documentation
93 cd doc/sphinx; make man info ; cd - 93 cd doc/sphinx; make man info html >/dev/null; cd -
94} 94}
95 95
96 96
diff --git a/configure.ac b/configure.ac
index f24ca77b2..bfaff3280 100644
--- a/configure.ac
+++ b/configure.ac
@@ -442,15 +442,10 @@ AC_ARG_ENABLE([documentation],
442 [documentation=${enableval}], 442 [documentation=${enableval}],
443 [documentation=yes]) 443 [documentation=yes])
444 444
445AC_CHECK_PROG([SPHINX_BINARY], [sphinx-build], [true], [false]) 445AC_CHECK_PROG([DOXY_BINARY], [doxygen], [true], [false])
446AM_CONDITIONAL([HAVE_SPHINX_BINARY], [$SPHINX_BINARY]) 446AM_CONDITIONAL([HAVE_DOXY_BINARY], [$DOXY_BINARY])
447 447
448AM_CONDITIONAL([DOCUMENTATION], [test "x$documentation" = "xyes"]) 448AM_CONDITIONAL([DOCUMENTATION], [test "x$documentation" = "xyes"])
449AS_IF([test "x$documentation" = "xyes"],
450 [AS_IF([$SPHINX_BINARY],
451 [AC_DEFINE([DOCUMENTATION], [1], [Define to 1 if documentation is built])],
452 [AC_MSG_ERROR([Documentation requires sphinx])])],
453 [AC_DEFINE([DOCUMENTATION], [0], [Define to 1 if documentation is built])])
454 449
455AC_CHECK_PROGS([MANDOC_BINARY], [mandoc], [false]) 450AC_CHECK_PROGS([MANDOC_BINARY], [mandoc], [false])
456AM_CONDITIONAL([HAVE_MANDOC], [test "x$MANDOC_BINARY" != "xfalse"]) 451AM_CONDITIONAL([HAVE_MANDOC], [test "x$MANDOC_BINARY" != "xfalse"])
@@ -1458,10 +1453,10 @@ AS_IF([test "x$MANDOC_BINARY" = "xfalse"],
1458 [mandoc_msg="no"], 1453 [mandoc_msg="no"],
1459 [mandoc_msg="yes"]) 1454 [mandoc_msg="yes"])
1460 1455
1461# sphinx 1456# doxy
1462AS_IF([test "x$documentation" = "xyes"], 1457AS_IF([$DOXY_BINARY],
1463 [sphinx_msg="yes"], 1458 [doxy_msg="yes"],
1464 [sphinx_msg="no"]) 1459 [doxy_msg="no"])
1465 1460
1466# conversation 1461# conversation
1467conversation_msg="no" 1462conversation_msg="no"
@@ -1605,7 +1600,7 @@ gstreamer: ${gstreamer_msg}
1605 1600
1606Java: ${java_msg} 1601Java: ${java_msg}
1607 1602
1608sphinx: ${sphinx_msg} 1603doxygen: ${doxy_msg}
1609mandoc: ${mandoc_msg} 1604mandoc: ${mandoc_msg}
1610 1605
1611GNUnet configuration 1606GNUnet configuration
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 4194447fc..cfcb55453 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -2,14 +2,16 @@
2 2
3SUBDIRS = . 3SUBDIRS = .
4 4
5if DOCUMENTATION 5if HAVE_DOXY_BINARY
6 SUBDIRS += doxygen 6 SUBDIRS += doxygen
7all-local: 7endif
8 cd sphinx && make html 8
9sphinx: Makefile
10 cd sphinx && make html man info
11
9install-data-hook: 12install-data-hook:
10 mkdir -p $(DESTDIR)$(docdir) 13 mkdir -p $(DESTDIR)$(docdir)
11 cp -pr sphinx/_build/html $(DESTDIR)$(docdir) 14 cp -pr sphinx/_build/html $(DESTDIR)$(docdir)
12endif
13 15
14if INCLUDE_MANPAGES 16if INCLUDE_MANPAGES
15man_MANS = sphinx/_build/man/gnunet.1 17man_MANS = sphinx/_build/man/gnunet.1
@@ -20,8 +22,8 @@ info_TEXINFOS = \
20 sphinx/_build/texinfo/gnunet.texi 22 sphinx/_build/texinfo/gnunet.texi
21 23
22EXTRA_DIST = \ 24EXTRA_DIST = \
23 $(man_MANS) \ 25 $(man_MANS) \
24 $(info_TEXINFOS) \ 26 $(info_TEXINFOS) \
25 system_specific/outdated-and-old-installation-instructions.txt \ 27 system_specific/outdated-and-old-installation-instructions.txt \
26 system_specific/FROM_SOURCE \ 28 system_specific/FROM_SOURCE \
27 sphinx/about.rst \ 29 sphinx/about.rst \