]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/tex/GNUmakefile
e64c881ecc73329e340e905f6f0c81f61dceac39
[lilypond.git] / Documentation / tex / GNUmakefile
1 # Documentation/tex/Makefile
2
3 depth=../..
4
5 DATA_FILES = $(wildcard *.data)
6 datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
7 TEX_FILES = $(wildcard *.tex)
8 DOC_FILES = $(wildcard *.doc)
9
10 DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi)  $(TELY_FILES:.tely=.dvi))
11
12 #OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
13 #OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
14
15 EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(TEX_FILES) testje.fly
16 HTML_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.html))
17
18 PS_FILES = $(DVI_FILES:.dvi=.ps)
19
20 STEPMAKE_TEMPLATES=tex texinfo documentation
21 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
22
23 include $(depth)/make/stepmake.make 
24
25
26
27
28
29
30 dvi: $(DVI_FILES)
31
32 ps: $(PS_FILES)
33
34 # urg
35 default:
36
37 GENHTMLS = engraving colorado glossary computer-notation
38 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
39
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) $@
45
46 $(outdir)/%.latex: %.data $(depth)/VERSION
47         $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r'  -o $@ --format=latex $<
48
49
50
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
56
57 $(outdir)/%.bib: %.bib
58         ln -f $< $@
59
60 localclean:
61         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk