aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e4a0743..0171a2c 100644
--- a/Makefile
+++ b/Makefile
@@ -10,10 +10,13 @@ forge: version.go hookc/*.c hookc/hookc man # TODO
go mod vendor
go build .
-man: $(MAN_PAGES:%=man/%.html)
+man: $(MAN_PAGES:%=man/%.html) $(MAN_PAGES:%=man/%.txt)
man/%.html: man/%
- mandoc -Thtml -O style=static/mandoc.css $< > $@
+ mandoc -Thtml -O style=./mandoc.css $< > $@
+
+man/%.txt: man/%
+ mandoc $< | col -b > $@
hookc/hookc: