tests/examples: Mark some variables only used within their files as static.
[libav.git] / doc / Makefile
CommitLineData
f87b03b5
MR
1MANPAGES = $(PROGS-yes:%=doc/%.1)
2PODPAGES = $(PROGS-yes:%=doc/%.pod)
3HTMLPAGES = $(PROGS-yes:%=doc/%.html)
4
5DOCS = $(addprefix doc/, developer.html faq.html general.html libavfilter.html) $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
6
7all-$(CONFIG_DOC): documentation
8
9documentation: $(DOCS)
10
11TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
12
13doc/%.html: TAG = HTML
f038cf3c 14doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init
f87b03b5 15 $(Q)$(TEXIDEP)
f038cf3c 16 $(M)texi2html -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
f87b03b5
MR
17
18doc/%.pod: TAG = POD
19doc/%.pod: doc/%.texi
20 $(Q)$(TEXIDEP)
7ac6910d 21 $(M)$(SRC_PATH)/doc/texi2pod.pl $< $@
f87b03b5
MR
22
23doc/%.1: TAG = MAN
24doc/%.1: doc/%.pod
25 $(M)pod2man --section=1 --center=" " --release=" " $< > $@
26
5e27ec28
MR
27$(DOCS): | doc
28OBJDIRS += doc
29
f87b03b5
MR
30install-progs-$(CONFIG_DOC): install-man
31
32install-man: $(MANPAGES)
33 $(Q)mkdir -p "$(MANDIR)/man1"
34 $(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"
35
36uninstall: uninstall-man
37
38uninstall-man:
39 $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
40
41clean::
42 $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%)
43
44-include $(wildcard $(DOCS:%=%.d))
45
46.PHONY: documentation