]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/tex/GNUmakefile
release: 1.1.55
[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 DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
10
11 # just include me
12 YO_URG_FILES = $(wildcard *.yo-urg)
13
14 OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
15 OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
16
17 EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) testje.fly
18 HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
19 PS_FILES = $(DVI_FILES:.dvi=.ps)
20
21 STEPMAKE_TEMPLATES=tex 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' --package=$(topdir) -o $@ $<
45         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $@
46
47 $(outdir)/%.tex: %.data $(depth)/VERSION
48         $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ --latex $<
49
50
51 $(outdir)/glossary.dvi: $(outdir)/glossary-table.tex
52 $(outdir)/glossary.html: $(outdir)/glossary-table.html
53
54
55 local-WWW: $(HTML_FILES) $(OUTDOC_FILES:.doc=.ps.gz) $(OUTTEX_FILES:.tex=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz)  $(datafiles)
56         $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about LilyPond' \
57           $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(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 # Yeah right: 
65 # make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
66
67 #out/%: $(outdir)/%
68 #       cp -f $< $@
69
70 localclean:
71         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk