aboutsummaryrefslogtreecommitdiff
path: root/ukrainian/monacofonts/files/Makefile
blob: 10d7d115b78695ea19ace6fae38f4d287e3d1b8b (plain) (blame)
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
.SUFFIXES:	.bdf .pcf.gz

STEMS:=	italic09 italic12 roman09 roman10 roman12
PCFS:=	${STEMS:S/$/.pcf.gz/}

all:	${PCFS} fonts.dir fonts.alias

.bdf.pcf.gz:
	${LOCALBASE}/bin/bdftopcf < $< | gzip -9 > $@

fonts.dir: ${PCFS}
	${LOCALBASE}/bin/mkfontdir

# I don't know why ``isoir-111'' was  chosen for this fonts' encoding --
# they  are in  koi8-u, so  the each  will have  a corresponding  alias.
# Ukrainian koi8-u  is a  superset of  Russian koi8-r,  for applications
# that hardcode koi8-r in them, but omit koi8-u -- there will be another
# alias:
fonts.alias: fonts.dir
	awk '/monaco/ { \
		name = $$2; gsub("isoir-111", "koi8-u", $$2); \
		print $$2 " " name; gsub("koi8-u", "koi8-r", $$2); \
		print $$2 " " name}' < fonts.dir > fonts.alias

install: all
	${MKDIR} ${DESTDIR}${FONTSDIR}
	${INSTALL_DATA} ${PCFS} fonts.alias ${DESTDIR}${FONTSDIR}