aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 22b55f359ea764ecd86aa0b3d5581edfa7fa9cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TMACDIR ?= /usr/share/tmac
BINDIR ?= /usr/local/bin
MANDIR ?= /usr/local/man

TROFF ?= troff
PDFROFF ?= troff | dpost | ps2pdf -

all: README.pdf hacking.pdf

install:
	install -m 644 u.tmac t/toc.tmac $(TMACDIR)
	install t/toc $(BINDIR)

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