aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d7656ae2d4845771ad2df897cb1b87a6d07bbfac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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