]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/bibliography/GNUmakefile
899251880a0319ced1b970e95067b7dd1d88d5d2
[lilypond.git] / Documentation / bibliography / 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 OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
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 EL_FILES = $(wildcard *.el)
18 BIB_FILES= $(wildcard *.bib)
19 EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(wildcard *.sty) 
20 HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
21 PS_FILES = $(DVI_FILES:.dvi=.ps)
22
23 STEPMAKE_TEMPLATES=tex documentation
24 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
25
26 export BIBINPUTS:=$(shell pwd)//$(PATHSEP)$(BIBINPUTS)
27 include $(depth)/make/stepmake.make 
28
29
30
31
32
33
34 dvi: $(OUT_BIB_FILES) $(DVI_FILES)
35
36 ps: $(PS_FILES)
37
38 # urg
39 default:
40
41 GENHTMLS = engraving colorado  computer-notation
42 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
43
44 #urg should generalise and move Lilypond -> StepMake
45 # URG.  Lilypond specific. Move out. 
46 $(outdir)/%.html: %.data $(depth)/VERSION
47         $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' -o $@ $<
48         $(PYTHON) $(step-bindir)/add-html-footer.py  $@
49
50 $(outdir)/%.tex: %.data $(depth)/VERSION
51         $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r'  -o $@ --latex $<
52
53
54
55 local-WWW: $(HTML_FILES) $(OUTTEX_FILES:.tex=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles)
56         $(PYTHON) $(step-bindir)/ls-latex.py  --title 'References on Music Notation' \
57           $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES) \
58           | sed "s!$(outdir)/!!g" > $(outdir)/index.html
59
60 $(outdir)/%.bib: %.bib
61         ln -f $< $@
62
63 # ignore result since bib2html is nonstandard. Errors would halt the RPM build.j  
64 $(outdir)/%.html: %.bib
65         -bib2html $< $@
66
67 # Yeah right: 
68 # make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
69
70 #out/%: $(outdir)/%
71 #       cp -f $< $@
72
73 locamlclean:
74         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk