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 mudela
26 include $(depth)/make/stepmake.make
32 # Cancel default info rule
33 $(outdir)/%.info: $(outdir)/%.texi
35 # info is now built by default via texinfo-rules
36 # we must build them by default, otherwise they get built during make install
41 DEEP_HTML_FILES = $(outdir)/lilypond/lilypond.html $(outdir)/lilypond-internals/lilypond-internals.html
43 local-WWW: $(HTML_FILES) $(datafiles) $(PS_GZ_FILES) $(DEEP_HTML_FILES)
44 $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
46 -mkdir $(outdir)/lilypond
47 ln -f $(outdir)/*.png $(outdir)/lilypond
50 # $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation' \
51 # $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
52 # | sed "s!$(outdir)/!!g" > $(outdir)/index.html
54 $(outdir)/%.bib: %.bib
56 # we want footers even if website builds (or is built) partly
60 rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
62 backdoc-WWW: $(outdir)/lilypond-internals/lilypond-internals.html
63 $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
65 #ugh. lily/OUT/lilypond hardcoded.
66 # when cross-compiling, we don't have lilypond
68 $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
69 cd $(outdir) && ../$(depth)/$(builddir)/lily/out/lilypond ../$(src-depth)/ly/generate-documentation
70 -ln $(outdir)/lilypond-internals.texi $(outdir)/lilypond-internals.nexi
72 $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
73 ## -cd $(outdir) && lilypond ../$(src-depth)/ly/generate-documentation
74 ##programming error: Improbable offset for translation: setting to zero (Continuing; cross thumbs)
75 ##programming error: Molecule::add_at_edge: adding empty molecule. (Continuing; cross thumbs)
77 touch $(outdir)/$(*F).nexi
80 # Generic rule not possible?
81 # $(outdir)/%/%.html: $(outdir)/%.texi
82 $(outdir)/lilypond/lilypond.html: $(outdir)/lilypond.texi
83 -$(MAKEINFO) --force --output=$@ --html $<
84 # we want footers even if website builds (or is built) partly
85 $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
88 $(outdir)/lilypond-internals/lilypond-internals.html: $(outdir)/lilypond-internals.texi
89 -$(MAKEINFO) --force --output=$@ --html $<
90 # we want footers even if website builds (or is built) partly
91 $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))