aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-22 19:47:16 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-22 19:47:16 +0200
commitd1c128722e4478c386aa6adab88c680c61beb72d (patch)
tree79486acd5f704a0daf778c50e12f5b0ce24d0c52 /Makefile
parent3c38c0873e6b5f5814695e18b956a7378627aa45 (diff)
downloadmk-d1c128722e4478c386aa6adab88c680c61beb72d.tar.gz
Add hacking.t
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 065b120..cc656ae 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,8 @@
-example.pdf: example.t g.tmac
+all: example.pdf hacking.pdf
+
+hacking.pdf: hacking.t g.tmac
+ perl -pe '$$_=`$$_` if s/^\!//' hacking.t |\
+ groff -Tps | ps2pdf - > hacking.pdf
+
+example.pdf: hacking.pdf g.tmac
groff -Tps example.t | ps2pdf - > example.pdf