chiark / gitweb /
Add "install-local" rule to Makefile
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 22 May 2020 22:05:18 +0000 (23:05 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 22 May 2020 22:05:18 +0000 (23:05 +0100)
It installs into $HOME/.fonts, which is useful to me at least.

Makefile

index 9cf97039c0bf9f2e6075af9932d4cec06b0468ee..35938568d8e38e0ca98bc9c29f0f222cdf439fc8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,11 @@ bedstead-complement.pdf: bedstead-complement.ps bedstead.otf Fontmap
 clean:
        rm -f bedstead *.sfd *.otf *.bdf *.png *.pdf bedstead-complement.ps
 
+.PHONY: install-user
+install-user: $(OTFFILES)
+       install -d "$${HOME}"/.fonts
+       install -m 644 $(OTFFILES) "$${HOME}"/.fonts
+
 .PHONY: dist
 
 dist: $(DISTFILES)