From dfcf2da3561dc2708c0b9ebbcf5bb1bbd3c33749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 8 Jun 2021 19:50:56 +0200 Subject: Convert bd2 -> otb --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d7656ae..8bbf18d 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,25 @@ +.SUFFIXES: .ttf .afm .dit .bdf .otb + GROFF_SYS_FONTDIR ?= /usr/share/groff_font -.SUFFIXES: .ttf .afm .dit .ttf.afm: - cd var && fontforge -script ../generate-t42.pe ../$< + cd var && fontforge -script ../ttf2t42.pe ../$< .afm.dit: cd var && ../afmtodit ${<:S/^var\///} ../textmap ${@:S/^var\///} -install: +.bdf.otb: + cd var && fontforge -script ../bdf2otb.pe ../$< + +fonts: + cp var/*.otb ~/.fonts + +groff: 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 + find var -type f ! -name '*.ttf' ! -name '*.bdf' | \ + while read x; do rm "$$x"; done -- cgit v1.2.3