aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-24 16:38:10 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-24 16:38:10 +0200
commite6b0af9699dee016e273a69e82030a93b6d16e8d (patch)
treedee8bdbf8b150908a2bab33cd066355f81c7f8b9
parentb8fb8ad8ab2e5cbb245b35f20d050d50be2842d3 (diff)
downloadmk-e6b0af9699dee016e273a69e82030a93b6d16e8d.tar.gz
Makefile: Add 'install' target
-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