File: Makefile

package info (click to toggle)
fonts-xolonium 4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,196 kB
  • sloc: sed: 697; python: 106; makefile: 94
file content (121 lines) | stat: -rw-r--r-- 3,840 bytes parent folder | download | duplicates (2)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Release

version     := 4.2
weights     := Regular Bold
mainFormats := otf ttf
webFormats  := woff woff2


# Files

mainFonts    := $(foreach w,$(weights), $(foreach f,$(mainFormats), fonts/$(f)/Xolonium-$(w).$(f)))
webFonts     := $(foreach w,$(weights), $(foreach f,$(webFormats),  fonts/$(f)/Xolonium-$(w).$(f)))
xonoticFonts := xonotic/Xolonium-GPL-Regular.otf xonotic/Xolonium-GPL-Bold.otf


# Main rules

.PHONY: all
all: ${mainFonts}

.PHONY: web
web: ${webFonts}

.PHONY: xonotic
xonotic: ${xonoticFonts}

.PHONY: clean
clean:
	@ rm -fr tmp fonts
	@ rm -f ${xonoticFonts}


# Font files

fonts/otf/Xolonium-%.otf: \
	tmp/otf/Xolonium-%.otf \
	tmp/fea/Xolonium-%.fea
		@ mkdir -p $(@D)
		@ ./tools/clean-font.py $^ $@

fonts/ttf/Xolonium-%.ttf: \
	tmp/ttf/Xolonium-%.ttf \
	tmp/fea/Xolonium-%.fea
		@ mkdir -p $(@D)
		@ ./tools/clean-font.py $^ $@

fonts/woff/Xolonium-%.woff: \
	fonts/ttf/Xolonium-%.ttf
		@ mkdir -p $(@D)
		@ ./tools/make-woff.py $^ $@

fonts/woff2/Xolonium-%.woff2: \
	fonts/ttf/Xolonium-%.ttf
		@ mkdir -p $(@D)
		@ ./tools/make-woff.py $^ $@


# Temporary files

tmp/otf/Xolonium-%.otf: \
	src/sfd/Xolonium-%.sfd \
	src/sfd/Xolonium-Common.sfd \
	tmp/fea/Xolonium-%.fea
		@ mkdir -p $(@D)
		@ ./tools/make-font.py $^ NONE ${version} $@

tmp/ttf/Xolonium-%.ttf: \
	src/sfd/Xolonium-%.sfd \
	src/sfd/Xolonium-Common.sfd \
	tmp/fea/Xolonium-%.fea \
	tmp/hti/Xolonium-%.hti
		@ mkdir -p $(@D)
		@ ./tools/make-font.py $^ ${version} $@

.PRECIOUS: tmp/fea/Xolonium-%.fea
tmp/fea/Xolonium-%.fea: \
	src/fea/Xolonium-Common.fea \
	src/fea/Xolonium-Common-Class-Latin.fea \
	src/fea/Xolonium-Common-Class-Greek.fea \
	src/fea/Xolonium-Common-Class-Cyrillic.fea \
	src/fea/Xolonium-Common-Kern-All.fea \
	src/fea/Xolonium-Common-Kern-Latin.fea \
	src/fea/Xolonium-Common-Kern-Greek.fea \
	src/fea/Xolonium-Common-Kern-Cyrillic.fea \
	src/fea/Xolonium-Common-Kern.fea
		@ mkdir -p $(@D)
		@ sed -f tools/replace-names.sed $^ > $@

.PRECIOUS: tmp/hti/Xolonium-%.hti
tmp/hti/Xolonium-%.hti: \
	src/hti/Xolonium-Common-meta.hti \
	src/hti/Xolonium-%-cvt.hti \
	src/hti/Xolonium-Common-fpgm.hti \
	src/hti/Xolonium-%-prep.hti \
	src/hti/Xolonium-Common-glyphs.hti \
	src/hti/Xolonium-Common-composites.hti
		@ mkdir -p $(@D)
		@ cat $^ > $@


# Xonotic files

xonotic/Xolonium-GPL-%.otf: \
	tmp/otf/Xolonium-GPL-%.otf \
	tmp/fea/Xolonium-%.fea
		@ ./tools/clean-font.py $^ $@

tmp/otf/Xolonium-GPL-%.otf: \
	tmp/sfd/Xolonium-GPL-%.sfd \
	src/sfd/Xolonium-Common.sfd \
	tmp/fea/Xolonium-%.fea
		@ ./tools/make-font.py $^ NONE ${version} $@

tmp/sfd/Xolonium-GPL-%.sfd: \
	src/sfd/Xolonium-%.sfd
		@ mkdir -p $(@D)
		@ cp $^ $@
		@ sed -i 's|FontName: Xolonium|FontName: Xolonium-GPL|' $@
		@ sed -i 's|FullName: Xolonium|FullName: Xolonium GPL|' $@
		@ sed -i 's|FamilyName: Xolonium|FamilyName: Xolonium GPL|' $@
		@ sed -i 's|LangName:.*|LangName: 1033 "" "" "$*" "" "" "" "" "" "" "Severin Meyer" "" "https://gitlab.com/sev/xolonium" "" "This font is licensed under the GNU General Public License, either version 2 of the license, or any later version. This font is provided WITHOUT WARRANTY OF ANY KIND, either express or implied. See the GNU General Public License for more details.+AAoACgAA-As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version." "https://www.gnu.org/licenses/gpl-2.0"|' $@