]> git.xonotic.org Git - xonotic/mediasource.git/blob - fonts/xolonium/Makefile
Merge branch 'sev/luma_ok' into 'master'
[xonotic/mediasource.git] / fonts / xolonium / Makefile
1 .PHONY: public release install xonotic clean
2 .PRECIOUS: tmp/fea/Xolonium-Regular.fea tmp/fea/Xolonium-Bold.fea
3
4
5 version := 3.1
6 release := xolonium-fonts-${version}
7
8
9 # Public Version
10
11 public: \
12         release/public/Xolonium-Bold.otf \
13         release/public/Xolonium-Regular.otf
14
15 release: \
16         release/public/FEATURES.txt \
17         release/public/FONTLOG.txt \
18         release/public/LICENSE.txt \
19         release/public/xolonium.png \
20         release/public/Xolonium-Bold.otf \
21         release/public/Xolonium-Regular.otf
22                 @ rm -rf ${release}
23                 @ rm -rf ${release}.zip
24                 @ mkdir ${release}
25                 @ cp $^ ${release}
26                 @ 7za a -tzip -mfb=258 -mpass=15 ${release}.zip ${release}
27
28 install: public
29         @ cp release/public/Xolonium-Regular.otf ~/.fonts/Xolonium-Regular.otf
30         @ cp release/public/Xolonium-Bold.otf    ~/.fonts/Xolonium-Bold.otf
31
32
33 # Xonotic Version
34
35 xonotic: \
36         release/xonotic/Xolonium-GPL-Bold.otf \
37         release/xonotic/Xolonium-GPL-Regular.otf
38
39
40 # Cleanup
41
42 clean:
43         @ rm -rf tmp
44         @ rm -rf ${release}
45         @ rm -rf ${release}.zip
46         @ rm -rf release/public/Xolonium-Bold.otf
47         @ rm -rf release/public/Xolonium-Regular.otf
48         @ rm -rf release/xonotic/Xolonium-GPL-Bold.otf
49         @ rm -rf release/xonotic/Xolonium-GPL-Regular.otf
50
51
52 # Recipes
53
54 release/public/Xolonium-%.otf: \
55         src/sfd/Xolonium-%.sfd \
56         src/sfd/Xolonium-Dingbats.sfd \
57         tmp/fea/Xolonium-%.fea
58                 @ ./tools/compile.ff ${version} $^ $@
59
60 tmp/fea/Xolonium-%.fea: \
61         src/fea/Xolonium-Shared-Head.fea \
62         src/fea/Xolonium-Kern-Latin.fea \
63         src/fea/Xolonium-Kern-Greek.fea \
64         src/fea/Xolonium-Kern-Cyrillic.fea \
65         src/fea/Xolonium-Unshared-%.fea \
66         src/fea/Xolonium-Shared-Tail.fea
67                 @ mkdir -p tmp/fea
68                 @ cat $^ | sed -f tools/substitute.sed > $@
69
70 release/xonotic/Xolonium-GPL-%.otf: \
71         tmp/sfd/Xolonium-GPL-%.sfd \
72         src/sfd/Xolonium-Dingbats.sfd \
73         tmp/fea/Xolonium-%.fea
74                 @ ./tools/compile.ff ${version} $^ $@
75
76 tmp/sfd/Xolonium-GPL-%.sfd: \
77         src/sfd/Xolonium-%.sfd
78                 @ mkdir -p tmp/sfd
79                 @ cp $^ $@
80                 @ sed -i 's|FontName: Xolonium|FontName: Xolonium-GPL|' $@
81                 @ sed -i 's|FullName: Xolonium|FullName: Xolonium GPL|' $@
82                 @ sed -i 's|FamilyName: Xolonium|FamilyName: Xolonium GPL|' $@
83                 @ sed -i 's|LangName:.*|LangName: 1033 "" "" "$*" "" "" "" "" "" "" "Severin Meyer" "" "http://gitlab.com/sev/xolonium" "" "This font is licensed under the GNU General Public License, either version 2 of the license, or any later version.+AAoACgAA-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." "http://www.gnu.org/licenses/gpl-2.0"|' $@