lilypond-1.3.125
[lilypond.git] / mf / GNUmakefile
blob02c950bc3ef327c08a3ac063a92986190dbe6b71
1 # mf/Makefile
3 depth = ..
5 STEPMAKE_TEMPLATES=metafont metapost asciifont install install-out
6 include $(depth)/make/stepmake.make
8 AF_FILES = $(wildcard *.af)
10 EXTRA_DIST_FILES += README feta.tex
12 # don't try to make fonts from test files
13 TEST_FILES = $(wildcard *test*.mf)
14 FET_FILES = $(filter-out $(TEST_FILES),$(wildcard feta[0-9]*.mf))
15 FONT_FILES = $(filter-out $(TEST_FILES),$(wildcard feta*[0-9].mf))
17 XPM_FONTS = feta20 feta-nummer10 feta-braces20
18 #CM_AFM_FILES = cmr10
20 $(outdir)/cmr10.afm:
21 -$(GUILE) $(buildscript-dir)/tfm2oafm.scm `kpsewhich cmr10.tfm`
22 -mv $(@F) $@
24 LOG_FILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.log))
25 TEXTABLES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.tex))
26 AFM_FILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.afm) $(AF_FILES:.af=.afm) $(addsuffix .afm, $(CM_AFM_FILES)))
27 TFM_FILES = $(addprefix $(outdir)/, $(FONT_FILES:.mf=.tfm))
28 PFA_FILES = $(addprefix $(outdir)/, $(FONT_FILES:.mf=.pfa))
30 # Make tfm files first, log files last,
31 # so that normally log files aren't made twice
32 ALL_GEN_FILES= $(TFM_FILES) $(TEXTABLES) $(AFM_FILES) $(TFM_FILES) $(PFA_FILES) $(LOG_FILES)
34 #PRE_INSTALL=$(MAKE) "$(ALL_GEN_FILES)"
35 INSTALLATION_DIR=$(datadir)/mf/
36 INSTALLATION_FILES=$(MF_FILES) $(AF_FILES)
38 INSTALLATION_OUT_SUFFIXES=1 2 3 4
40 INSTALLATION_OUT_DIR1=$(datadir)/tex
41 INSTALLATION_OUT_FILES1=$(TEXTABLES)
43 INSTALLATION_OUT_DIR2=$(datadir)/afm
44 INSTALLATION_OUT_FILES2=$(AFM_FILES)
46 INSTALLATION_OUT_DIR3=$(datadir)/tfm
47 INSTALLATION_OUT_FILES3=$(TFM_FILES)
49 # comment these out if you don't want pfa's to be generated
50 # or you don't have metapost.
51 INSTALLATION_OUT_DIR4=$(datadir)/pfa
52 INSTALLATION_OUT_FILES4=$(PFA_FILES)
54 export MFINPUTS:=.:$(MFINPUTS)
56 default: $(ALL_GEN_FILES)
58 $(outdir)/%.afm $(outdir)/%.tex $(outdir)/%.dep: $(outdir)/%.log
59 $(PYTHON) $(buildscript-dir)/mf-to-table.py --package=$(topdir) --outdir=$(outdir) --dep $(outdir)/$(<F:.log=.dep) --afm $(outdir)/$(<F:.log=.afm) --tex $(outdir)/$(<F:.log=.tex) $<
61 localclean:
62 rm -f mfplain.mem mfplain.log mpout.log
63 rm -f *.tfm *.log