]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/tex/GNUmakefile
patch::: 1.2.8.jcn2
[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)  $(OUTDOC_FILES:.doc=.ps) $(OUTTEX_FILES:.tex=.ps)
19 PS_GZ_FILES= $(addsuffix .gz, $(PS_FILES))
20
21 STEPMAKE_TEMPLATES=tex texinfo documentation
22 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
23
24 include $(depth)/make/stepmake.make 
25
26
27
28
29
30
31 dvi: $(DVI_FILES)
32
33 ps: $(PS_FILES)
34
35 # urg
36 default:
37
38 GENHTMLS = engraving colorado glossary computer-notation
39 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
40
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 $@ $<
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
52
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
58
59 $(outdir)/%.bib: %.bib
60         ln -f $< $@
61
62 localclean:
63         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk