lilypond-1.3.124
[lilypond.git] / mf / Makefile
blob11418e32e92c28c585897e380c5d300ea865e9c5
1 # mf/Makefile
3 depth = ..
5 MAKEFILES=Metafont
7 EXTRA_DIST_FILES += TODO README
9 FET_FILES = $(wildcard feta[0-9]*.mf)
11 LYTABLES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.ly))
12 LOG_FILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.log))
13 TEXTABLES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.tex))
14 AFM_FILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.afm))
16 ALL_GEN_FILES=$(LYTABLES) $(TEXTABLES) $(LOG_FILES) $(AFM_FILES)
18 OUT_DIST_FILES += $(AFM_FILES)
20 include $(depth)/make/Stepmake.make
22 default: $(ALL_GEN_FILES)
25 $(outdir)/%.afm $(outdir)/%.ly $(outdir)/%.tex $(outdir)/%.dep: $(outdir)/%.log
26 $(PYTHON) $(buildscripts)/mf-to-table.py --package=$(topdir) --outdir=$(outdir) --dep $(outdir)/$(<F:.log=.dep) --ly $(outdir)/$(<F:.log=.ly) --afm $(outdir)/$(<F:.log=.afm) --tex $(outdir)/$(<F:.log=.tex) $<
29 TEXINSTALL=$(MAKE) INSTALLATION_OUT_DIR=$(TEXDIR)/lilypond depth=.. INSTALLATION_OUT_FILES="$(TEXTABLES)" -f $(stepdir)/Install_outfiles.sub.make $@
31 AFMINSTALL=$(MAKE) depth=.. INSTALLATION_OUT_DIR=$(datadir) INSTALLATION_OUT_FILES="$(AFM_FILES)" -f $(stepdir)/Install_outfiles.sub.make $@
33 LYINSTALL=$(MAKE) depth=.. INSTALLATION_OUT_DIR=$(datadir) INSTALLATION_OUT_FILES="$(LYTABLES)" -f $(stepdir)/Install_outfiles.sub.make $@
35 localinstall: $(ALL_GEN_FILES)
36 $(TEXINSTALL)
37 $(LYINSTALL)
38 $(AFMINSTALL)
40 localuninstall:
41 $(TEXINSTALL)
42 $(LYINSTALL)
43 $(AFMINSTALL)
45 INSTALLATION_DIR=$(MFDIR)/public/lilypond
46 INSTALLATION_FILES=$(MF_FILES)
48 include $(stepdir)/Installfiles.make