]> git.donarmstrong.com Git - lilypond.git/commitdiff
Try to make the doc build with texi2html
authorReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 21 Mar 2008 14:02:24 +0000 (15:02 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 21 Mar 2008 14:02:24 +0000 (15:02 +0100)
config.make.in
configure.in
lilypond-texi2html.init [new symlink]
make/doclang-rules.make
make/doclang-vars.make
stepmake/stepmake/texinfo-rules.make
stepmake/stepmake/texinfo-vars.make

index 4d714c3d3f235e62ac8b87bb9635df4f0ce5f808..da0123311f405c6f5d2a378eadd52a50398de12f 100644 (file)
@@ -126,6 +126,7 @@ LINK_GXX_STATICALLY = @LINK_GXX_STATICALLY@
 LN = @LN@
 LN_S = @LN_S@
 MAKEINFO_PROGRAM = @MAKEINFO@
+TEXI2HTML_PROGRAM = @TEXI2HTML@
 METAFONT = @METAFONT@ -progname=mf
 MFMODE = @MFMODE@
 MSGFMT = @MSGFMT@
index b15a0b0de07d26044bd63cf1c294ced47a96dbc7..b9e427a66e88ef0cfc37ca1038890e20b73b9cc7 100644 (file)
@@ -128,7 +128,8 @@ AC_MSG_RESULT(Must have patched GUILE rational support. See INSTALL.txt))
 CPPFLAGS="$save_CPPFLAGS"
 
 
-STEPMAKE_MAKEINFO(REQUIRED, 4.11)
+# We check for makeinfo below, too. Really duplicate that check?
+## STEPMAKE_MAKEINFO(REQUIRED, 4.11)
 STEPMAKE_PYTHON_DEVEL(REQUIRED)
 
 STEPMAKE_PATH_PROG(GHOSTSCRIPT, gs, OPTIONAL, 8.15)
@@ -176,6 +177,7 @@ STEPMAKE_GUILE(OPTIONAL)
 STEPMAKE_PERL(OPTIONAL)
 
 STEPMAKE_PROGS(MAKEINFO, makeinfo, REQUIRED, 4.11)
+STEPMAKE_PROGS(TEXI2HTML, texi2html, REQUIRED, 1.79)
 
 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
 
diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init
new file mode 120000 (symlink)
index 0000000..69081df
--- /dev/null
@@ -0,0 +1 @@
+../lilypond-texi2html.init
\ No newline at end of file
index 1f4865d0099ae368e4bb01800f97e44921778dc2..1964e3833492b198f7f83c6228260ab4fb0e5622 100644 (file)
@@ -1,9 +1,15 @@
 $(outdir)/%/index.html: $(outdir)/%.texi
        mkdir -p $(dir $@)
-       -$(MAKEINFO) -P $(outdir) --output=$(outdir)/$* --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
+       ifneq "$(ISOLANG)" ""
+               TEXI2HTML_LANG=--lang=$(ISOLANG)
+       endif
+       -$(TEXI2HTML) --I=$(outdir) --output=$(outdir)/$* --split=section $(TEXI2HTML_LANG) $<
 
 $(outdir)/%-big-page.html: $(outdir)/%.texi
-       -$(MAKEINFO) -P $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split --no-headers $< 
+       ifneq "$(ISOLANG)" ""
+               TEXI2HTML_LANG=--lang=$(ISOLANG)
+       endif
+       -$(TEXI2HTML) --I=$(outdir) --output=$@ $(TEXI2HTML_LANG) $< 
 
 $(outdir)/%.pdftexi: $(outdir)/%.texi doc-po
        $(PYTHON) $(buildscript-dir)/texi-gettext.py $(buildscript-dir) $(top-build-dir)/Documentation/po/$(outdir) $(ISOLANG) $<
index c0a2db573331af2260a7fc182e7851a43b36b3c3..8dbc19f83562c08e7acfaa4fbb52502fee9d1479 100644 (file)
@@ -11,6 +11,9 @@ LILYPOND_BOOK_INCLUDES += $(DOCUMENTATION_INCLUDES)
 MAKEINFO_FLAGS += --force --enable-encoding -D 'version $(TOPLEVEL_VERSION)' $(DOCUMENTATION_INCLUDES)
 MAKEINFO = LANG= $(MAKEINFO_PROGRAM) $(MAKEINFO_FLAGS)
 
+TEXI2HTML_FLAGS += --init-file=$(top-src-dir)/lilypond-texi2html.init --css-ref=lilypond.css $(DOCUMENTATION_INCLUDES)
+TEXI2HTML = $(TEXI2HTML_PROGRAM) $(TEXI2HTML_FLAGS)
+
 TEXI2PDF_FLAGS += --batch --tidy --command '@set version $(TOPLEVEL_VERSION)'
 TEXI2PDF_FLAGS += $(DOCUMENTATION_INCLUDES)
 
index 88a4fe47a2d122078fa1dde8de0a1d96323619b5..9197cdfd8722c6067c99d9fd2411a67436e6aac3 100644 (file)
@@ -33,11 +33,13 @@ endif
 $(outdir)/%.info: $(outdir)/%.texi $(outdir)/$(INFO_IMAGES_DIR).info-images-dir.dep
        $(MAKEINFO) -I$(outdir) --output=$@ $<
 
+
+# TODO: Pass -D bigpage to texi2html
 $(outdir)/%-big-page.html: $(outdir)/%.texi
-       $(MAKEINFO) -I $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split -D bigpage --no-headers $<
+       $(TEXI2HTML) --I=$(outdir) --output=$@ $(TEXI2HTML_LANG) $< 
 
 $(outdir)/%.html: $(outdir)/%.texi
-       $(MAKEINFO) -I $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split --no-headers $<
+       $(TEXI2HTML) --I=$(outdir) --output=$@ $(TEXI2HTML_LANG) $<
 
 $(outdir)/%.html.omf: %.texi
        $(call GENERATE_OMF,html)
@@ -50,7 +52,7 @@ $(outdir)/%.ps.gz.omf: %.texi
 
 $(outdir)/%/index.html: $(outdir)/%.texi
        mkdir -p $(dir $@)
-       $(MAKEINFO) -I $(outdir) --output=$(dir $@) --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
+       $(TEXI2HTML) --I=$(outdir) --output=$(dir $@) $(TEXI2HTML_LANG) --split=section $<
 
 $(outdir)/%.pdf: $(outdir)/%.texi
        cd $(outdir); texi2pdf $(TEXI2PDF_FLAGS) --batch $(TEXINFO_PAPERSIZE_OPTION) $(<F)
index 4ee7cefa474dac6762da3b9d4aef10579c0fde2e..c9c9c49e73619e9883a20bc51e9aa5f5f8183ae3 100644 (file)
@@ -15,6 +15,8 @@ TEXINFO_PAPERSIZE_OPTION= $(if $(findstring $(PAPERSIZE),a4),,-t @afourpaper)
 MAKEINFO_FLAGS = --enable-encoding -D 'version $(TOPLEVEL_VERSION)'
 MAKEINFO = LANG= $(MAKEINFO_PROGRAM) $(MAKEINFO_FLAGS)
 
+TEXI2HTML_FLAGS = 
+TEXI2HTML = LANG= $(TEXI2HTML_PROGRAM) $(TEXI2HTML_FLAGS)
 
 # info stuff
 INFO_INSTALL_FILES = $(wildcard $(addsuffix *, $(INFO_FILES)))