aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6aa8fa89d9523e000beb8a53abee0eea274f7e95 (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