]> git.sesse.net Git - ffmpeg/blobdiff - doc/Makefile
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / doc / Makefile
index 15e7323acc590f2aa278834b1e0de586c62061e7..a97218240b64c6afe0e4670c4d92ba23dc9fb718 100644 (file)
@@ -9,13 +9,24 @@ HTMLPAGES   = $(PROGS-yes:%=doc/%.html)                                 \
               doc/libavfilter.html                                      \
               doc/platform.html                                         \
 
+TXTPAGES    = doc/fate.txt                                              \
+
+
 DOCS = $(HTMLPAGES) $(MANPAGES) $(PODPAGES)
+ifdef HAVE_MAKEINFO
+DOCS += $(TXTPAGES)
+endif
 
 all-$(CONFIG_DOC): documentation
 
 documentation: $(DOCS)
 
-TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
+TEXIDEP = awk '/^@(verbatim)?include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
+
+doc/%.txt: TAG = TXT
+doc/%.txt: doc/%.texi
+       $(Q)$(TEXIDEP)
+       $(M)makeinfo --force --no-headers -o $@ $< 2>/dev/null
 
 doc/print_options.o: libavformat/options_table.h libavcodec/options_table.h
 
@@ -54,7 +65,7 @@ uninstall-man:
        $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
 
 clean::
-       $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
+       $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) doc/avoptions_*.texi
 
 -include $(wildcard $(DOCS:%=%.d))