From d4b1ddbeebc469d9696e0877cc6bf1d21663eccf Mon Sep 17 00:00:00 2001 From: "John Ankarstr\\xf6m" Date: Thu, 3 Jun 2021 14:33:06 +0200 Subject: Convert ttf -> dit for (g)troff --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3