aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
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 <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: