blob: 9d7ed6fbdf2ad462772cfa8336c1c2ba25396b14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Makefile.am common part
#
# Required variables from configure script:
# - FONTFORGE
# The path of fontforge command line
# - INCLUDE_PFB
# Condition whether to generate Type 1 fonts
# - INCLUDE_TTF
# Condition whether to generate TrueType fonts
# - INCLUDE_OTF
# Condition whether to generate OpenType fonts
# - INCLUDE_TESTFONT
# Condition whether to generate fonts for testing
#
# Required variables from component's Makefile
# - FONTSOURCES : the list of *.sfd files to use as input
#
TTFFILES = $(FONTSOURCES:.sfd=.ttf)
OTFFILES = $(FONTSOURCES:.sfd=.otf)
AFMFILES = $(FONTSOURCES:.sfd=.afm)
PFBFILES = $(FONTSOURCES:.sfd=.pfb)
WOFFFILES = $(FONTSOURCES:.sfd=.woff)
TESTTTFFILES = $(TTFFILES:%.ttf=TTF%.ttf)
TESTOTFFILES = $(OTFFILES:%.otf=OTF%.otf)
TESTAFMFILES = $(AFMFILES:%.afm=PS%.afm)
TESTPFBFLES = $(PFBFILES:%.pfb=PS%.pfb)
TESTTYPE1FILES = $(TESTPFBFILES) $(TESTAFMFILES)
if INCLUDE_PFB
TYPE1FILES = $(PFBFILES) $(AFMFILES)
endif
if INCLUDE_TTF
ttf_DATA = $(TTFFILES)
endif
if INCLUDE_PFB
type1_DATA = $(TYPE1FILES)
endif
if INCLUDE_OTF
otf_DATA = $(OTFFILES)
endif
if INCLUDE_WOFF
woff_DATA = $(WOFFFILES)
endif
if INCLUDE_TESTFONT
testfont_DATA = $(TESTTTFFILES) $(TESTTYPE1FILES) $(TESTOTFFILES)
endif
CLEANFILES = *.ttf *.g2n *.pfb *.afm *.pfm *.otf *.enc *.tfm
SUFFIXES: .sfd .ttf .otf .woff .pfb
TTF%.ttf: %.sfd
$(FONTFORGE) -script $(top_srcdir)/scripts/gen-test-ttf.pe $<
OTF%.otf: %.sfd
$(FONTFORGE) -script $(top_srcdir)/scripts/gen-test-otf.pe $<
PS%.afm PS%.pfb: %.sfd
$(FONTFORGE) -script $(top_srcdir)/scripts/gen-test-pfb.pe $<
%.ttf: %.sfd
$(FONTFORGE) -script $(top_srcdir)/scripts/gen-ttf.pe $<
%.otf: %.sfd
$(FONTFORGE) -script $(top_srcdir)/scripts/gen-otf.pe $<
%.woff: %.sfd
$(FONTFORGE) -script $(top_srcdir)/scripts/gen-woff.pe $<
%.afm %.pfb: %.sfd
$(FONTFORGE) -script $(top_srcdir)/scripts/gen-pfb.pe $<
|