aboutsummaryrefslogtreecommitdiffstats
path: root/consolefont/Makefile
blob: 7b7efef1c1e8aac506345767f16c9b4147fa8cd0 (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
28
29
.POSIX:

PREFIX = /usr
NAME   = maandree-16

LAT9W_16_PATH = /usr/share/kbd/consolefonts/lat9w-16.psfu.gz

all: maandree-16.psfu.gz

maandree-16.psf: maandree-16
	txt2psf maandree-16 maandree-16.psf

maandree-16.psfu: maandree-16.psf
	gunzip < $(LAT9W_16_PATH) | psfgettable - | psfaddtable maandree-16.psf - maandree-16.psfu

maandree-16.psfu.gz: maandree-16.psfu
	gzip -9f < maandree-16.psfu > maandree-16.psfu.gz

install:
	mkdir -p -- /usr/share/kbd/consolefonts/
	cp -- maandree-16.psfu.gz "$(DESTDIR)$(PREFIX)/share/kbd/consolefonts/$(NAME).psfu.gz"

uninstall:
	-rm -f -- "$(DESTDIR)$(PREFIX)/share/kbd/consolefonts/$(NAME).psfu.gz"

clean:
	-rm -f -- maandree-16.psfu.gz maandree-16.psfu maandree-16.psf

.PHONY: all install uninstall clean