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)
20 STEPMAKE_TEMPLATES=tex texinfo documentation
21 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
23 include $(depth)/make/stepmake.make
37 GENHTMLS = engraving colorado glossary computer-notation
38 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
40 #urg should generalise and move Lilypond -> StepMake
41 # URG. Lilypond specific. Move out.
42 $(outdir)/%.html: %.data $(depth)/VERSION
43 $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='
\r' -o $@ $<
44 $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $@
46 $(outdir)/%.latex: %.data $(depth)/VERSION
47 $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='
\r' -o $@ --format=latex $<
51 local-WWW: $(HTML_FILES) $(DVI_FILES:.dvi=.ps.gz) $(datafiles)
52 $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about LilyPond' \
53 $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) $(TEXI_FILES)\
54 | sed "s!$(outdir)/!!g" > $(outdir)/index.html
55 $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
57 $(outdir)/%.bib: %.bib
61 rm -f fonts.aux fonts.log feta*.tfm feta*.*pk