aboutsummaryrefslogtreecommitdiff
path: root/t/Makefile
blob: e040b7a7d869e70cd2e9aa156995251abfa1667d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.SUFFIXES: .t .T .pdf
TEST != ls *.t | sed 's/t$$/T/'

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

all: $(TEST)

k.tmac: ../k.tmac
	cp k.tmac k.tmac.orig || true
	grep -v '^\. *w ' ../k.tmac > k.tmac

.t.T: k.tmac t.tmac
	@echo -- $< -----------------------
	@<$< $(TROFF) >/dev/null

.t.pdf: k.tmac t.tmac
	<$< $(PDFROFF) > $@