2011-06-06 19:03:22 +02:00
|
|
|
MANPAGES = $(PROGS-yes:%=doc/%.1)
|
|
|
|
PODPAGES = $(PROGS-yes:%=doc/%.pod)
|
2011-12-07 21:49:53 +01:00
|
|
|
HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
|
|
|
|
doc/developer.html \
|
|
|
|
doc/faq.html \
|
2011-12-02 01:33:07 +01:00
|
|
|
doc/fate.html \
|
2011-12-07 21:49:53 +01:00
|
|
|
doc/general.html \
|
2011-12-03 18:06:14 +01:00
|
|
|
doc/git-howto.html \
|
2011-12-07 21:49:53 +01:00
|
|
|
doc/libavfilter.html \
|
2011-12-13 23:50:20 +01:00
|
|
|
doc/nut.html \
|
2011-12-03 21:25:04 +01:00
|
|
|
doc/platform.html \
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2013-11-22 01:57:56 +01:00
|
|
|
DOCS-$(CONFIG_PERL) += $(MANPAGES) $(PODPAGES)
|
|
|
|
DOCS-$(CONFIG_TEXI2HTML) += $(HTMLPAGES)
|
|
|
|
DOCS = $(DOCS-yes)
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2013-11-22 01:57:56 +01:00
|
|
|
all: $(DOCS)
|
2011-06-06 19:03:22 +02:00
|
|
|
|
2012-10-29 16:26:59 +01:00
|
|
|
apidoc: doc/doxy/html
|
2011-06-06 19:03:22 +02:00
|
|
|
documentation: $(DOCS)
|
|
|
|
|
|
|
|
TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
|
|
|
|
|
2012-03-14 20:08:50 +01:00
|
|
|
GENTEXI = format codec
|
|
|
|
GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
|
|
|
|
|
|
|
|
$(GENTEXI): TAG = GENTEXI
|
|
|
|
$(GENTEXI): doc/avoptions_%.texi: doc/print_options
|
|
|
|
$(M)doc/print_options $* > $@
|
|
|
|
|
2011-06-06 19:03:22 +02:00
|
|
|
doc/%.html: TAG = HTML
|
2012-03-14 20:08:50 +01:00
|
|
|
doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
|
2011-06-06 19:03:22 +02:00
|
|
|
$(Q)$(TEXIDEP)
|
2012-03-20 11:54:02 +01:00
|
|
|
$(M)texi2html -I doc -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
doc/%.pod: TAG = POD
|
2013-01-23 10:08:57 +01:00
|
|
|
doc/%.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI)
|
2011-06-06 19:03:22 +02:00
|
|
|
$(Q)$(TEXIDEP)
|
2012-03-20 11:54:02 +01:00
|
|
|
$(M)$(SRC_PATH)/doc/texi2pod.pl -Idoc $< $@
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
doc/%.1: TAG = MAN
|
2012-03-14 20:08:50 +01:00
|
|
|
doc/%.1: doc/%.pod $(GENTEXI)
|
2011-06-06 19:03:22 +02:00
|
|
|
$(M)pod2man --section=1 --center=" " --release=" " $< > $@
|
|
|
|
|
2012-10-29 16:26:59 +01:00
|
|
|
$(DOCS) doc/doxy/html: | doc/
|
|
|
|
|
|
|
|
doc/doxy/html: $(SRC_PATH)/doc/Doxyfile $(INSTHEADERS)
|
|
|
|
$(M)$(SRC_PATH)/doc/doxy-wrapper.sh $(SRC_PATH) $^
|
2011-06-28 19:45:13 +02:00
|
|
|
|
2013-11-22 01:57:56 +01:00
|
|
|
install-progs-$(CONFIG_PERL): install-man
|
|
|
|
install-progs-$(CONFIG_TEXI2HTML): install-doc
|
2013-08-28 10:30:14 +02:00
|
|
|
|
|
|
|
install-doc: $(HTMLPAGES)
|
|
|
|
$(Q)mkdir -p "$(DOCDIR)"
|
|
|
|
$(INSTALL) -m 644 $(HTMLPAGES) "$(DOCDIR)"
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
install-man: $(MANPAGES)
|
|
|
|
$(Q)mkdir -p "$(MANDIR)/man1"
|
|
|
|
$(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
|
|
|
|
|
2013-08-28 10:30:14 +02:00
|
|
|
uninstall: uninstall-doc uninstall-man
|
|
|
|
|
|
|
|
uninstall-doc:
|
|
|
|
$(RM) -r "$(DOCDIR)"
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
uninstall-man:
|
|
|
|
$(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
|
|
|
|
|
|
|
|
clean::
|
2012-03-14 20:08:50 +01:00
|
|
|
$(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
|
2012-10-29 16:26:59 +01:00
|
|
|
$(RM) -r doc/doxy/html
|
2011-06-06 19:03:22 +02:00
|
|
|
|
|
|
|
-include $(wildcard $(DOCS:%=%.d))
|
|
|
|
|
2012-10-29 16:26:59 +01:00
|
|
|
.PHONY: apidoc documentation
|