aboutsummaryrefslogtreecommitdiff
path: root/mk/t/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mk/t/Makefile')
-rw-r--r--mk/t/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/mk/t/Makefile b/mk/t/Makefile
new file mode 100644
index 0000000..e040b7a
--- /dev/null
+++ b/mk/t/Makefile
@@ -0,0 +1,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) > $@