1 # Documentation/tex/Makefile
7 LATEX_FILES =$(wildcard *.latex)
11 DVI_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.dvi))
13 EXTRA_DIST_FILES= $(LATEX_FILES) $(wildcard *.itexi *.itely)
15 HTML_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.html))
17 PS_FILES = $(DVI_FILES:.dvi=.ps) $(OUTDOC_FILES:.doc=.ps) $(OUTTEX_FILES:.tex=.ps)
19 PS_GZ_FILES= $(addsuffix .gz, $(PS_FILES))
21 INFO_FILES = $(addprefix $(outdir)/, lilypond.info lilypond-internals.info)
23 STEPMAKE_TEMPLATES=tex texinfo documentation
24 LOCALSTEPMAKE_TEMPLATES=lilypond ly
26 include $(depth)/make/stepmake.make
32 # Cancel default info rule
33 $(outdir)/%.info: $(outdir)/%.texi
37 # info is now built by default via texinfo-rules
38 # we must build them by default, otherwise they get built during make install
42 DEEP_HTML_FILES = $(outdir)/lilypond/lilypond.html $(outdir)/lilypond-internals/lilypond-internals.html
44 local-WWW: $(HTML_FILES) $(datafiles) $(PS_GZ_FILES) $(DEEP_HTML_FILES)
45 $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
47 -mkdir $(outdir)/lilypond
48 cp -f $(outdir)/*.png $(outdir)/lilypond
51 # $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation' \
52 # $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
53 # | sed "s!$(outdir)/!!g" > $(outdir)/index.html
55 $(outdir)/%.bib: %.bib
57 # we want footers even if website builds (or is built) partly
61 rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
63 backdoc-WWW: $(outdir)/lilypond-internals/lilypond-internals.html
64 $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
66 #ugh. lily/OUT/lilypond hardcoded.
67 # when cross-compiling, we don't have lilypond
69 $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
70 cd $(outdir) && ../$(depth)/$(builddir)/lily/out/lilypond ../$(src-depth)/ly/generate-documentation
71 -ln $(outdir)/lilypond-internals.texi $(outdir)/lilypond-internals.nexi
73 $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
74 ## -cd $(outdir) && lilypond ../$(src-depth)/ly/generate-documentation
75 ##programming error: Improbable offset for translation: setting to zero (Continuing; cross thumbs)
76 ##programming error: Molecule::add_at_edge: adding empty molecule. (Continuing; cross thumbs)
78 touch $(outdir)/$(*F).nexi
81 # Generic rule not possible?
82 # $(outdir)/%/%.html: $(outdir)/%.texi
83 $(outdir)/lilypond/lilypond.html: $(outdir)/lilypond.texi
84 -$(MAKEINFO) --force --output=$@ --html $<
85 # we want footers even if website builds (or is built) partly
86 $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
89 $(outdir)/lilypond-internals/lilypond-internals.html: $(outdir)/lilypond-internals.texi
90 -$(MAKEINFO) --force --output=$@ --html $<
91 # we want footers even if website builds (or is built) partly
92 $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))