blob: 8bbf18d6fdb7a7bfc1b3e6e8d00eb577500b74d7 (
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
|
.SUFFIXES: .ttf .afm .dit .bdf .otb
GROFF_SYS_FONTDIR ?= /usr/share/groff_font
.ttf.afm:
cd var && fontforge -script ../ttf2t42.pe ../$<
.afm.dit:
cd var && ../afmtodit ${<:S/^var\///} ../textmap ${@:S/^var\///}
.bdf.otb:
cd var && fontforge -script ../bdf2otb.pe ../$<
fonts:
cp var/*.otb ~/.fonts
groff:
cp var/*.t42 var/[A-Z] var/[A-Z][A-Z] var/[A-Z][A-Z][A-Z] \
"$(GROFF_SYS_FONTDIR)"/devps
[ -d "$(GROFF_SYS_FONTDIR)"/devpdf ] && cp var/*.pfa \
"$(GROFF_SYS_FONTDIR)"/devpdf
clean:
find var -type f ! -name '*.ttf' ! -name '*.bdf' | \
while read x; do rm "$$x"; done
|