* Documentation/user/GNUmakefile (extra-local-help): Add xml rules.
* stepmake/stepmake/texinfo-vars.make (GENERATE_OMF): Fix location.
+2004-10-03 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * Documentation/user/macros.itexi: Add xml macros.
+
+ * Documentation/user/GNUmakefile (extra-local-help): Add xml rules.
+
+ * stepmake/stepmake/texinfo-vars.make (GENERATE_OMF): Fix location.
+
2004-10-03 Han-Wen Nienhuys <hanwen@xs4all.nl>
* lily/break-substitution.cc (substitute_mutable_property_alist):
info: $(INFO_FILES)
+xml: $(outdir)/lilypond/lilypond.xml $(outdir)/lilypond-internals/lilypond-internals.xml
+
# There are two modes for info: with and without images.
ifeq ($(out),www)
dvi update dvi documents\n\
info update info pages\n\
ps update PostScript documents\n\
+ xml update Docbook xml documentation\n\
"
# Generic rule using % twice not possible?
$(MAKEINFO) --output=$(outdir)/lilypond-internals --css-include=$(abs-srcdir)/Documentation/texinfo.css --html $<
$(MAKEINFO) -I$(outdir) --output=$@ --css-include=$(abs-srcdir)/Documentation/texinfo.css --html --no-split --no-headers $<
+$(outdir)/lilypond/lilypond.xml: $(outdir)/lilypond.texi
+ mkdir -p $(dir $@)
+ $(MAKEINFO) -I$(outdir) --output=$@ --docbook $<
+ perl -i~ -pe 's!../lilypond-internals!lilypond-internals/!g' $(outdir)/lilypond.xml
+
+$(outdir)/lilypond-internals/lilypond-internals.xml: $(outdir)/lilypond-internals.texi
+ mkdir -p $(dir $@)
+ $(MAKEINFO) --output=$(outdir)/lilypond-internals --docbook $<
+
ifeq ($(SPLITTING_MAKEINFO),yes)
$(outdir)/lilypond.dvi: $(OUT_EPS_IMAGES) $(OUT_PNG_IMAGES)
@c dup?
-
@ifhtml
@c ***** HTML *****
@end ifhtml
+@c dup?
+@ifdocbook
+
+ @c ***** DOCBOOK-XML *****
+
+ @macro internalsref{NAME}
+ @c makeinfo-4.7 encodes html names
+ @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
+ @inforef{\NAME\,,lilypond-internals}@c
+ @c should we do this?
+ @cindex @code{\NAME\}
+ @end macro
+
+ @macro hyphenatedinternalsref{NAME,NODENAME}
+ @c @uref{../lilypond-internals/\NODENAME\.html,\NAME\}@c
+ @inforef{\NODENAME\,,lilypond-internals}@c
+ @c should we do this?
+ @cindex @code{\NAME\}
+ @end macro
+
+ @macro inputfileref{DIR,NAME}
+ @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
+ @end macro
+
+@end ifdocbook
+
@ifinfo
@c **** INFO ****
%
raggedlastbottom= ##t
+ %% ugh. Should use /etc/papersize and set explicitely for
+ %% documentation.
papersize = "a4"
#(define font-defaults
OUTTXT_FILES += $(addprefix $(outdir)/,$(TEXI_FILES:.texi=.txt))
-GENERATE_OMF = $(PYTHON) $(depth)/buildscripts/texi2omf.py --format $(1) --location $(local_package_docdir)/$(current-relative-dir)/out-www/$(notdir $(basename $@)) --version $(TOPLEVEL_VERSION) $< > $@
+GENERATE_OMF = $(PYTHON) $(depth)/buildscripts/texi2omf.py --format $(1) --location $(package_docdir)/html/$(current-relative-dir)/out-www/$(notdir $(basename $@)) --version $(TOPLEVEL_VERSION) $< > $@
TEXINFO_PAPERSIZE_OPTION= $(if $(findstring $(PAPERSIZE),a4),,-t @afourpaper)