summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 81f098e0b3..b76772bc2d 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -10,9 +10,11 @@ HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
doc/nut.html \
doc/platform.html \
-DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
+DOCS-$(CONFIG_PERL) += $(MANPAGES) $(PODPAGES)
+DOCS-$(CONFIG_TEXI2HTML) += $(HTMLPAGES)
+DOCS = $(DOCS-yes)
-all-$(CONFIG_DOC): documentation
+all: $(DOCS)
apidoc: doc/doxy/html
documentation: $(DOCS)
@@ -45,7 +47,8 @@ $(DOCS) doc/doxy/html: | doc/
doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS)
$(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^
-install-progs-$(CONFIG_DOC): install-doc install-man
+install-progs-$(CONFIG_PERL): install-man
+install-progs-$(CONFIG_TEXI2HTML): install-doc
install-doc: $(HTMLPAGES)
$(Q)mkdir -p "$(DOCDIR)"