aboutsummaryrefslogtreecommitdiff
path: root/t/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-21 12:56:03 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-21 12:56:03 +0200
commit8e62161e1d1a7f2f3732dfd66f85ecb09fe19c98 (patch)
tree305872c843a72c0bac8e031d384b7276fa361b99 /t/Makefile
parentd30db1b45a794e6608fdac30d5238930ce414309 (diff)
downloadmk-8e62161e1d1a7f2f3732dfd66f85ecb09fe19c98.tar.gz
Add tests
Diffstat (limited to 't/Makefile')
-rw-r--r--t/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/Makefile b/t/Makefile
new file mode 100644
index 0000000..6027724
--- /dev/null
+++ b/t/Makefile
@@ -0,0 +1,11 @@
+.SUFFIXES: .t .T .pdf
+TEST != ls *.t | sed 's/t$$/T/'
+
+all: $(TEST)
+
+.t.T:
+ @echo -- $< -----------------------
+ @groff -Tps $< >/dev/null
+
+.t.pdf:
+ groff -Tps $< | ps2pdf - > $@