From e6b0af9699dee016e273a69e82030a93b6d16e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 24 Jun 2021 16:38:10 +0200 Subject: Makefile: Add 'install' target --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3