aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-24 10:55:19 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-24 13:51:58 +0200
commit4ef9c2b48f9fcdc5b8c347367566a987a9893aa2 (patch)
treeabc418a0d9022740e78514951fa4e806eb9bee2d /Makefile
parent36528d22c7a609d5e981fca3d7429048140ccca2 (diff)
downloadmk-4ef9c2b48f9fcdc5b8c347367566a987a9893aa2.tar.gz
README.t: Add PDF bookmarks, links
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 485c8e3..cfdab83 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,12 @@
+TROFF ?= troff
+PDFROFF ?= troff | dpost | ps2pdf -
+
all: README.pdf hacking.pdf
hacking.pdf: hacking.t g.tmac
perl -pe '$$_=`$$_` if s/^\!//' hacking.t |\
- troff -x3 | dpost | ps2pdf - > hacking.pdf
+ $(PDFROFF) > hacking.pdf
README.pdf: README.t g.tmac
TROFFONTS=/usr/pkg/share/fonts/X11/TTF/ \
- <README.t toc/toc troff -x3 | dpost | ps2pdf - > README.pdf
+ <README.t toc/toc $(PDFROFF) > README.pdf