From d7e3e540e41474252c1e6314cdd339bc1ff80a82 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 30 Mar 2025 21:34:53 +0800 Subject: mandoc in Makefile and forge.5 --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 063c336..e4a0743 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,20 @@ # SPDX-License-Identifier: AGPL-3.0-only # SPDX-FileContributor: Runxi Yu -.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: -- cgit v1.2.3