aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarstrom <john@ankarstrom.se>2021-07-03 19:56:16 +0200
committerJohn Ankarstrom <john@ankarstrom.se>2021-07-03 20:12:30 +0200
commitbc84dd1eab78e96ccc7dabd7561cfaf57f165951 (patch)
tree9b6c88827525687ec9204f33807c6535f8d5cb9b /Makefile
parentc0b94c538d7bee2a81991d64f44b4b2ad255091e (diff)
downloadmk-bc84dd1eab78e96ccc7dabd7561cfaf57f165951.tar.gz
Move mk into separate directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 3 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 0c59a31..7805ee7 100644
--- a/Makefile
+++ b/Makefile
@@ -2,22 +2,10 @@ 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 k.tmac t/toc.tmac $(TMACDIR)
+ install -m 644 mk/k.tmac t/toc.tmac $(TMACDIR)
install -m 644 toc/toc.1 list/list.1 $(MANDIR)/man1
install toc/toc list/list $(BINDIR)
-HACKING.pdf: HACKING.t k.tmac
- perl -pe '$$_=`$$_` if s/^\!//' HACKING.t |\
- LC_ALL=en_US.UTF-8\
- $(PDFROFF) > HACKING.pdf
-
-README.pdf: README.t k.tmac
- TROFFONTS=/usr/pkg/share/fonts/X11/TTF/\
- LC_ALL=en_US.UTF-8\
- <README.t toc/toc list/list -p.l \| $(PDFROFF) > README.pdf
+install-extra:
+ install -m 644 mk/kx.tmac $(TMACDIR)