2011-06-06 17:03:22 +00:00
|
|
|
MANPAGES = $(PROGS-yes:%=doc/%.1)
|
|
|
|
PODPAGES = $(PROGS-yes:%=doc/%.pod)
|
2011-12-07 20:49:53 +00:00
|
|
|
HTMLPAGES = $(PROGS-yes:%=doc/%.html) \
|
|
|
|
doc/developer.html \
|
|
|
|
doc/faq.html \
|
2011-12-02 00:33:07 +00:00
|
|
|
doc/fate.html \
|
2011-12-07 20:49:53 +00:00
|
|
|
doc/general.html \
|
2011-12-03 17:06:14 +00:00
|
|
|
doc/git-howto.html \
|
2011-12-07 20:49:53 +00:00
|
|
|
doc/libavfilter.html \
|
2011-12-03 20:25:04 +00:00
|
|
|
doc/platform.html \
|
2011-06-06 17:03:22 +00:00
|
|
|
|
2011-12-07 20:49:53 +00:00
|
|
|
DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
all-$(CONFIG_DOC): documentation
|
|
|
|
|
|
|
|
documentation: $(DOCS)
|
|
|
|
|
2011-12-19 23:27:22 +00:00
|
|
|
TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
doc/%.html: TAG = HTML
|
2011-06-06 21:38:38 +00:00
|
|
|
doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init
|
2011-06-06 17:03:22 +00:00
|
|
|
$(Q)$(TEXIDEP)
|
2011-06-06 21:38:38 +00:00
|
|
|
$(M)texi2html -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
doc/%.pod: TAG = POD
|
|
|
|
doc/%.pod: doc/%.texi
|
|
|
|
$(Q)$(TEXIDEP)
|
2011-06-28 16:12:36 +00:00
|
|
|
$(M)$(SRC_PATH)/doc/texi2pod.pl $< $@
|
2011-06-06 17:03:22 +00:00
|
|
|
|
|
|
|
doc/%.1: TAG = MAN
|
|
|
|
doc/%.1: doc/%.pod
|
|
|
|
$(M)pod2man --section=1 --center=" " --release=" " $< > $@
|
|
|
|
|
2011-06-28 17:45:13 +00:00
|
|
|
$(DOCS): | doc
|
|
|
|
OBJDIRS += doc
|
|
|
|
|
2011-06-06 17:03:22 +00:00
|
|
|
install-progs-$(CONFIG_DOC): install-man
|
|
|
|
|
|
|
|
install-man: $(MANPAGES)
|
|
|
|
$(Q)mkdir -p "$(MANDIR)/man1"
|
|
|
|
$(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
|
|
|
|
|
|
|
|
uninstall: uninstall-man
|
|
|
|
|
|
|
|
uninstall-man:
|
|
|
|
$(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
|
|
|
|
|
|
|
|
clean::
|
|
|
|
$(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%)
|
|
|
|
|
|
|
|
-include $(wildcard $(DOCS:%=%.d))
|
|
|
|
|
|
|
|
.PHONY: documentation
|