diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-30 21:34:53 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-30 22:53:20 +0800 |
commit | d7e3e540e41474252c1e6314cdd339bc1ff80a82 (patch) | |
tree | 3f740da251506739908a05445f41b0cb63c83f0d /Makefile | |
parent | Add hookc.1 man page (diff) | |
download | forge-d7e3e540e41474252c1e6314cdd339bc1ff80a82.tar.gz forge-d7e3e540e41474252c1e6314cdd339bc1ff80a82.tar.zst forge-d7e3e540e41474252c1e6314cdd339bc1ff80a82.zip |
mandoc in Makefile and forge.5
Diffstat (limited to '')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,14 +1,20 @@ # SPDX-License-Identifier: AGPL-3.0-only # SPDX-FileContributor: Runxi Yu <https://runxiyu.org> -.PHONY: clean version.go +.PHONY: clean version.go man CFLAGS = -Wall -Wextra -Werror -pedantic -std=c99 -D_GNU_SOURCE +MAN_PAGES = forge.5 hookc.1 -forge: $(filter-out forge,$(wildcard *)) version.go hookc/*.c hookc/hookc +forge: version.go hookc/*.c hookc/hookc man # TODO go mod vendor go build . +man: $(MAN_PAGES:%=man/%.html) + +man/%.html: man/% + mandoc -Thtml -O style=static/mandoc.css $< > $@ + hookc/hookc: version.go: |