2014-04-08 19:56:31 +02:00
|
|
|
# See LICENSE file for license and copyright information
|
|
|
|
#
|
|
|
|
include ../config.mk
|
|
|
|
include ../common.mk
|
2014-04-24 16:23:19 +02:00
|
|
|
include ../colors.mk
|
2014-04-08 19:56:31 +02:00
|
|
|
include config.mk
|
|
|
|
|
|
|
|
ifeq ($(shell which $(SPHINX_BIN) >/dev/null 2>&1; echo $$?), 1)
|
|
|
|
$(error The '$(SPHINX_BIN)' command was not found.)
|
|
|
|
endif
|
|
|
|
|
2014-04-20 01:43:49 +02:00
|
|
|
all: html man
|
2014-04-08 19:56:31 +02:00
|
|
|
|
|
|
|
init:
|
|
|
|
$(QUIET)mkdir -p $(SPHINX_BUILDDIR)/
|
|
|
|
|
|
|
|
clean:
|
2014-04-24 16:23:19 +02:00
|
|
|
$(call colorecho,RM,doc/$(SPHINX_BUILDDIR))
|
2014-04-08 19:56:31 +02:00
|
|
|
$(QUIET)rm -rf $(SPHINX_BUILDDIR)/
|
|
|
|
|
|
|
|
html: doxygen
|
2014-04-24 16:23:19 +02:00
|
|
|
$(call colorecho,DOC,"Build HTML documentation")
|
2014-04-08 19:56:31 +02:00
|
|
|
$(QUIET)$(SPHINX_BIN) -b html $(SPHINX_OPTS) $(SPHINX_BUILDDIR)/html
|
|
|
|
|
|
|
|
man: doxygen
|
2014-04-24 16:23:19 +02:00
|
|
|
$(call colorecho,DOC,"Build man pages")
|
2014-04-08 19:56:31 +02:00
|
|
|
$(QUIET)$(SPHINX_BIN) -b man $(SPHINX_OPTS) $(SPHINX_BUILDDIR)/man
|
|
|
|
|
2014-04-20 01:43:49 +02:00
|
|
|
doxygen: init
|
2014-04-24 16:23:19 +02:00
|
|
|
$(call colorecho,DOC,"Run doxygen")
|
2014-04-08 19:56:31 +02:00
|
|
|
$(QUIET)$(DOXYGEN_BIN) Doxyfile
|
|
|
|
|
|
|
|
.PHONY: clean html man
|