]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/tex/GNUmakefile
release: 1.2.5
[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
13
14 OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
15 OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
16
17 EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(TEX_FILES) testje.fly
18 HTML_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.html))
19
20 PS_FILES = $(DVI_FILES:.dvi=.ps)
21
22 STEPMAKE_TEMPLATES=tex texinfo documentation
23 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
24
25 include $(depth)/make/stepmake.make 
26
27
28
29
30
31
32 dvi: $(DVI_FILES)
33
34 ps: $(PS_FILES)
35
36 # urg
37 default:
38
39 GENHTMLS = engraving colorado glossary computer-notation
40 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
41
42 #urg should generalise and move Lilypond -> StepMake
43 # URG.  Lilypond specific. Move out. 
44 $(outdir)/%.html: %.data $(depth)/VERSION
45         $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' -o $@ $<
46         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $@
47
48 $(outdir)/%.latex: %.data $(depth)/VERSION
49         $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r'  -o $@ --format=latex $<
50
51
52
53
54
55 local-WWW: $(HTML_FILES) $(OUTDOC_FILES:.doc=.ps.gz) $(OUTTEX_FILES:.tex=.ps.gz)   $(datafiles)
56         $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about LilyPond' \
57            $(DOC_FILES) $(TEX_FILES)\
58           | sed "s!$(outdir)/!!g" > $(outdir)/index.html
59           $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
60
61 $(outdir)/%.bib: %.bib
62         ln -f $< $@
63
64 localclean:
65         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk