aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d7656ae
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+GROFF_SYS_FONTDIR ?= /usr/share/groff_font
+.SUFFIXES: .ttf .afm .dit
+
+.ttf.afm:
+ cd var && fontforge -script ../generate-t42.pe ../$<
+
+.afm.dit:
+ cd var && ../afmtodit ${<:S/^var\///} ../textmap ${@:S/^var\///}
+
+install:
+ cp var/*.t42 var/[A-Z] var/[A-Z][A-Z] var/[A-Z][A-Z][A-Z] \
+ "$(GROFF_SYS_FONTDIR)"/devps
+ [ -d "$(GROFF_SYS_FONTDIR)"/devpdf ] && cp var/*.pfa \
+ "$(GROFF_SYS_FONTDIR)"/devpdf
+
+clean:
+ find var -type f ! -name '*.ttf' | while read x; do rm "$$x"; done