aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: cfdab8322207c3d18a0c006b5a957b71201dca8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
TROFF ?= troff
PDFROFF ?= troff | dpost | ps2pdf -

all: README.pdf hacking.pdf

hacking.pdf: hacking.t g.tmac
	perl -pe '$$_=`$$_` if s/^\!//' hacking.t |\
	$(PDFROFF) > hacking.pdf

README.pdf: README.t g.tmac
	TROFFONTS=/usr/pkg/share/fonts/X11/TTF/ \
	<README.t toc/toc $(PDFROFF) > README.pdf