aboutsummaryrefslogtreecommitdiff
path: root/t/Makefile
blob: 49eaac5c6b6b1492b08408dff36f53b8c21697fe (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)

g.tmac: ../g.tmac
	cp g.tmac g.tmac.orig
	grep -v '^\. *w ' ../g.tmac > g.tmac

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

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