diff options
author | Alexander Strasser <eclipse7@gmx.net> | 2011-12-20 00:28:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-20 16:05:01 +0100 |
commit | abab44086fa5b7b3c4cd3f5eabc1348977b506b9 (patch) | |
tree | fcc6a33dad061fae5bba5f04901271d250d913e5 /doc/Makefile | |
parent | a4872cfefe64999adf684d4d1053bf70b3929ad8 (diff) | |
download | ffmpeg-abab44086fa5b7b3c4cd3f5eabc1348977b506b9.tar.gz |
doc: fate: Support building a plain text version
Also create a plain text (.txt) file from fate.texi if the makeinfo
program is available.
Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile index 8bbfe185ce..2dbf30a0db 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -9,7 +9,13 @@ 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 @@ -17,6 +23,11 @@ documentation: $(DOCS) 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/%.html: TAG = HTML doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(Q)$(TEXIDEP) @@ -46,7 +57,7 @@ uninstall-man: $(RM) $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES)) clean:: - $(RM) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) + $(RM) $(TXTPAGES) doc/*.html doc/*.pod doc/*.1 $(CLEANSUFFIXES:%=doc/%) -include $(wildcard $(DOCS:%=%.d)) |