aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6fc4617e5781af9216018194b05ab24ea0c515c2 (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 u.tmac
	perl -pe '$$_=`$$_` if s/^\!//' hacking.t |\
	$(PDFROFF) > hacking.pdf

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