aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-31 00:56:53 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-31 00:57:42 +0800
commitf16f2caba7e516ba5a7e78f14be35a9e066c3fea (patch)
tree6a8b9347c99f9db8bc4e412a72a4041471b5411b /Makefile
parentAdd repo tab navigation to all pages (diff)
downloadforge-f16f2caba7e516ba5a7e78f14be35a9e066c3fea.tar.gz
forge-f16f2caba7e516ba5a7e78f14be35a9e066c3fea.tar.zst
forge-f16f2caba7e516ba5a7e78f14be35a9e066c3fea.zip
Mandoc more
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: