aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6fc4617..22b55f3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,16 @@
+TMACDIR ?= /usr/share/tmac
+BINDIR ?= /usr/local/bin
+MANDIR ?= /usr/local/man
+
TROFF ?= troff
PDFROFF ?= troff | dpost | ps2pdf -
all: README.pdf hacking.pdf
+install:
+ install -m 644 u.tmac t/toc.tmac $(TMACDIR)
+ install t/toc $(BINDIR)
+
hacking.pdf: hacking.t u.tmac
perl -pe '$$_=`$$_` if s/^\!//' hacking.t |\
$(PDFROFF) > hacking.pdf