]> git.donarmstrong.com Git - lilypond.git/blob - mf/Makefile
patch::: 0.1.17.jcn2: biems
[lilypond.git] / mf / Makefile
1 # mf/Makefile
2
3 # subdir level:
4 #
5 depth = ..
6 #
7 #
8 include ./$(depth)/make/Include.make
9 #
10
11 # list of distribution files:
12
13 TEXFILES = $(wildcard *.tex)
14 MFFILES = $(wildcard *.mf)
15 EXTRA_DISTFILES = $(MFFILES) $(TEXFILES) TODO
16 #
17
18 FONT_FILES = $(wildcard *[0-9].mf)
19 lyout = $(depth)/init
20 texout = $(depth)/tex
21 LYTABLES = $(addprefix $(lyout)/, $(FONT_FILES:.mf=.ly))
22 TEXTABLES = $(addprefix $(texout)/, $(FONT_FILES:.mf=.tex))
23 #
24
25 all: $(LYTABLES) $(TEXTABLES)
26
27 localclean:
28         rm -f $(LYTABLES) $(TEXTABLES)
29
30 $(outdir)/%.log: %.mf
31         mf $<
32         mv $(@F) $@
33         rm $(shell basename $< .mf).*gf
34
35 $(lyout)/%.ly $(texout)/%.tex: $(outdir)/%.log
36         mf-to-table -l $(lyout)/$(<F:.log=.ly) -t $(texout)/$(<F:.log=.tex) $<
37         
38 localinstall:
39         $(INSTALL) -d $(MFDIR)/lilypond
40         $(INSTALL) -m 644 $(MFFILES) $(MFDIR)/lilypond/
41
42 localuninstall:
43         for i in $(MFFILES) ; do rm -f $(MFDIR)/lilypond/$$i; done
44         -rmdir $(MFDIR)/lilypond/
45
46 # dependencies:
47 #
48 $(lyout)/dyn10.ly: autometric.mf ital-f.mf ital-m.mf ital-p.mf ital-r.mf ital-s.mf ital-z.mf dyn10.mf
49 $(lyout)/font-en-tja16.ly: autometric.mf bolletjes.mf eindelijk.mf font-en-tja16.mf wat-zie-ik.mf
50 $(lyout)/font-en-tja20.ly: autometric.mf bolletjes.mf eindelijk.mf font-en-tja20.mf wat-zie-ik.mf
51 #
52 $(texout)/dyn10.tex: autometric.mf ital-f.mf ital-m.mf ital-p.mf ital-r.mf ital-s.mf ital-z.mf dyn10.mf
53 $(texout)/font-en-tja16.tex: autometric.mf bolletjes.mf eindelijk.mf font-en-tja16.mf wat-zie-ik.mf
54 $(texout)/font-en-tja20.tex: autometric.mf bolletjes.mf eindelijk.mf font-en-tja20.mf wat-zie-ik.mf
55 #
56
57