diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-08-31 19:39:35 -0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-04 02:34:20 +0200 |
commit | 17ad5fbb8af3ea3fad689064bc84ecfdfe52f0c2 (patch) | |
tree | e8e16ee908b4e0ba2c9d4cdfb6f053e0c6d9cd2c /doc/Makefile | |
parent | 75a9859ac67b60105769fda7160db081216b70f2 (diff) | |
download | ffmpeg-17ad5fbb8af3ea3fad689064bc84ecfdfe52f0c2.tar.gz |
Use makeinfo to generate html doc for the new website
texi2html is deprecated by upstream in favor of makeinfo/texi2any. See:
- https://www.gnu.org/software/texinfo/manual/texinfo/html_node/texi2html.html
- https://wiki.debian.org/Texi2htmlTransition
- https://lists.debian.org/debian-devel/2013/05/msg01516.html
This is actually two separate changes.
Based on a patch by Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>.
Fixes Trac ticket #3232.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
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 6f2812df1c..25029227a5 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -82,14 +82,25 @@ $(GENTEXI): doc/avoptions_%.texi: doc/print_options$(HOSTEXESUF) $(M)doc/print_options $* > $@ doc/%.html: TAG = HTML +doc/%-all.html: TAG = HTML + +ifdef HAVE_MAKEINFO_HTML +doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.pm $(GENTEXI) + $(Q)$(TEXIDEP) + $(M)makeinfo --html -I doc --no-split -D config-not-all --init-file=$(SRC_PATH)/doc/t2h.pm --output $@ $< + +doc/%-all.html: doc/%.texi $(SRC_PATH)/doc/t2h.pm $(GENTEXI) + $(Q)$(TEXIDEP) + $(M)makeinfo --html -I doc --no-split -D config-all --init-file=$(SRC_PATH)/doc/t2h.pm --output $@ $< +else doc/%.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI) $(Q)$(TEXIDEP) $(M)texi2html -I doc -monolithic --D=config-not-all --init-file $(SRC_PATH)/doc/t2h.init --output $@ $< -doc/%-all.html: TAG = HTML doc/%-all.html: doc/%.texi $(SRC_PATH)/doc/t2h.init $(GENTEXI) $(Q)$(TEXIDEP) $(M)texi2html -I doc -monolithic --D=config-all --init-file $(SRC_PATH)/doc/t2h.init --output $@ $< +endif doc/%.pod: TAG = POD doc/%.pod: doc/%.texi $(SRC_PATH)/doc/texi2pod.pl $(GENTEXI) |