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