Commit ee02495a authored by Edwin Carlinet's avatar Edwin Carlinet

Add option --enable-doc as a switch to build documentation.

parent 3dfc61eb
......@@ -30,7 +30,9 @@ endif ENABLE_SCRIBO
# We rely on Automake to ensure that the documentions are generated in
# the right order. Here, we make sure that the general documentation
# will be generated after Milena's and Scribo's documentation.
SUBDIRS += doc
if ENABLE_DOC
SUBDIRS += doc
endif ENABLE_DOC
# Target shortcuts delegating the actual action to milena/Makefile.
LOCAL_RECURSIVE_TARGETS = tests
......
......@@ -170,8 +170,15 @@ fi
## Documentation. ##
## --------------- ##
# Switch to enable doc
AC_ARG_ENABLE([doc],
[AS_HELP_STRING([--enable-doc],
[build documentation])])
AM_CONDITIONAL([ENABLE_DOC], [test "x$enable_doc" = xyes])
# Tools used to build the documentation.
# rst2html can have many names, especially in the MacPorts, where
# py-docutils binaries include their version numbers in their names.
AC_ARG_VAR([RST2HTML], [reStructuredText-to-HTML translator])
......@@ -215,6 +222,7 @@ AC_ARG_ENABLE([all],
enable_scribo=yes
enable_apps=yes
enable_tools=yes
enable_doc=yes
fi])
......@@ -733,6 +741,7 @@ Swilena --enable-swilena $enable_swilena
-------------------------------------------------------------------------------
Apps --enable-apps $enable_apps
Tools --enable-tools $enable_tools
Doc --enable-doc $enable_doc
-------------------------------------------------------------------------------
......
......@@ -15,7 +15,12 @@
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
SUBDIRS = . doc mesh tests
SUBDIRS = . $(DOCDIR) mesh tests
if ENABLE_DOC
SUBDIRS += doc
endif ENABLE_DOC
if ENABLE_APPS
SUBDIRS += apps
......
......@@ -15,7 +15,12 @@
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
SUBDIRS = demo doc tests src
SUBDIRS = demo $(DOCDIR) tests src
if ENABLE_DOC
SUBDIRS += doc
endif ENABLE_DOC
.PHONY: bin
bin:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment