diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-01 17:32:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-01 17:32:48 +0100 |
commit | 5703473fc06d8a92ec92d44fab5ddcf19938a1a6 (patch) | |
tree | 9a0a521f20c3865ca88c319ae9dfa7e5329021ee /consolefont/Makefile | |
parent | update readme (diff) | |
download | my-keyboard-5703473fc06d8a92ec92d44fab5ddcf19938a1a6.tar.gz my-keyboard-5703473fc06d8a92ec92d44fab5ddcf19938a1a6.tar.bz2 my-keyboard-5703473fc06d8a92ec92d44fab5ddcf19938a1a6.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'consolefont/Makefile')
-rw-r--r-- | consolefont/Makefile | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/consolefont/Makefile b/consolefont/Makefile index 128b2fe..7b7efef 100644 --- a/consolefont/Makefile +++ b/consolefont/Makefile @@ -1,4 +1,9 @@ -SHELL=bash +.POSIX: + +PREFIX = /usr +NAME = maandree-16 + +LAT9W_16_PATH = /usr/share/kbd/consolefonts/lat9w-16.psfu.gz all: maandree-16.psfu.gz @@ -6,15 +11,19 @@ maandree-16.psf: maandree-16 txt2psf maandree-16 maandree-16.psf maandree-16.psfu: maandree-16.psf - psfaddtable maandree-16.psf <(psfgettable <(gunzip < /usr/share/kbd/consolefonts/lat9w-16.psfu.gz)) maandree-16.psfu + gunzip < $(LAT9W_16_PATH) | psfgettable - | psfaddtable maandree-16.psf - maandree-16.psfu maandree-16.psfu.gz: maandree-16.psfu - gzip maandree-16.psfu + gzip -9f < maandree-16.psfu > maandree-16.psfu.gz install: - maandree-16.psfu.gz /usr/share/kbd/consolefonts/maandree-16.psfu.gz + 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" -depends: - @echo 'nafe: building psf file' - @echo 'kbd: converting psf to psfu' +clean: + -rm -f -- maandree-16.psfu.gz maandree-16.psfu maandree-16.psf +.PHONY: all install uninstall clean |