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