1 # Documentation/tex/Makefile
5 DATA_FILES = $(wildcard *.data)
6 datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
7 TEX_FILES = $(wildcard *.tex)
8 DOC_FILES = $(wildcard *.doc)
10 DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(TELY_FILES:.tely=.dvi))
12 #OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
13 #OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
15 EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(TEX_FILES) testje.fly
16 HTML_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.html))
18 PS_FILES = $(DVI_FILES:.dvi=.ps) $(OUTDOC_FILES:.doc=.ps) $(OUTTEX_FILES:.tex=.ps)
19 PS_GZ_FILES= $(addsuffix .gz, $(PS_FILES))
21 STEPMAKE_TEMPLATES=tex texinfo documentation
22 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
24 include $(depth)/make/stepmake.make
38 GENHTMLS = engraving colorado glossary computer-notation
39 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
41 #urg should generalise and move Lilypond -> StepMake
42 # URG. Lilypond specific. Move out.
43 $(outdir)/%.html: %.data $(depth)/VERSION
44 $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='
\r' -o $@ $<
46 $(outdir)/%.latex: %.data $(depth)/VERSION
47 $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='
\r' -o $@ --format=latex $<
53 local-WWW: $(HTML_FILES) $(datafiles) $(PS_GZ_FILES)
54 $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation about LilyPond' \
55 $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
56 | sed "s!$(outdir)/!!g" > $(outdir)/index.html
57 $(footify) $(outdir)/index.html
59 $(outdir)/%.bib: %.bib
63 rm -f fonts.aux fonts.log feta*.tfm feta*.*pk