TXTPAGES = doc/fate.txt \
-DOCS-$(HAVE_TEXI2HTML) += $(HTMLPAGES)
-DOCS-$(HAVE_POD2MAN) += $(MANPAGES) $(PODPAGES)
-DOCS-$(HAVE_MAKEINFO) += $(TXTPAGES)
+DOCS-$(CONFIG_HTMLPAGES) += $(HTMLPAGES)
+DOCS-$(CONFIG_PODPAGES) += $(PODPAGES)
+DOCS-$(CONFIG_MANPAGES) += $(MANPAGES)
+DOCS-$(CONFIG_TXTPAGES) += $(TXTPAGES)
DOCS = $(DOCS-yes)
-all-$(CONFIG_DOC): documentation
+all-$(CONFIG_DOC): doc
+
+doc: documentation
documentation: $(DOCS)
doc/%.pod: TAG = POD
doc/%.pod: doc/%.texi $(GENTEXI)
$(Q)$(TEXIDEP)
- $(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
+ $(M)perl $(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
doc/%.1: TAG = MAN
doc/%.1: doc/%.pod $(GENTEXI)
install-man:
-ifdef HAVE_POD2MAN
+ifdef CONFIG_MANPAGES
install-progs-$(CONFIG_DOC): install-man
install-man: $(MANPAGES)
-include $(wildcard $(DOCS:%=%.d))
-.PHONY: documentation
+.PHONY: doc documentation