diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-24 16:38:10 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-24 16:38:10 +0200 |
commit | e6b0af9699dee016e273a69e82030a93b6d16e8d (patch) | |
tree | dee8bdbf8b150908a2bab33cd066355f81c7f8b9 /Makefile | |
parent | b8fb8ad8ab2e5cbb245b35f20d050d50be2842d3 (diff) | |
download | mk-e6b0af9699dee016e273a69e82030a93b6d16e8d.tar.gz |
Makefile: Add 'install' target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |