aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-03-14 20:08:50 +0100
committerAnton Khirnov <anton@khirnov.net>2012-03-20 07:10:06 +0100
commit0d0b81f941a2d5011bec754ba48e84a479306661 (patch)
tree9eb0c695437602273a1b36d5c31ebc3a080ff707 /doc/Makefile
parent4fea8959d8f8719fa33ea30a5cfc98338aae0af2 (diff)
downloadffmpeg-0d0b81f941a2d5011bec754ba48e84a479306661.tar.gz
Generate manpages for AV{Format,Codec}Context AVOptions.
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 0acd9844af..5172707a4b 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -17,18 +17,27 @@ documentation: $(DOCS)
TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
+doc/print_options.o: libavformat/options_table.h libavcodec/options_table.h
+
+GENTEXI = format codec
+GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
+
+$(GENTEXI): TAG = GENTEXI
+$(GENTEXI): doc/avoptions_%.texi: doc/print_options
+ $(M)doc/print_options $* > $@
+
doc/%.html: TAG = HTML
-doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init
+doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI)
$(Q)$(TEXIDEP)
$(M)texi2html -monolithic --init-file $(SRC_PATH)/doc/t2h.init --output $@ $<
doc/%.pod: TAG = POD
-doc/%.pod: doc/%.texi
+doc/%.pod: doc/%.texi $(GENTEXI)
$(Q)$(TEXIDEP)
$(M)$(SRC_PATH)/doc/texi2pod.pl $< $@
doc/%.1: TAG = MAN
-doc/%.1: doc/%.pod
+doc/%.1: doc/%.pod $(GENTEXI)
$(M)pod2man --section=1 --center=" " --release=" " $< > $@
$(DOCS): | doc
@@ -46,7 +55,7 @@ uninstall-man:
$(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
clean::
- $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%)
+ $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
-include $(wildcard $(DOCS:%=%.d))