diff options
Diffstat (limited to '')
-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 |