Makefile: build documentation.

This commit is contained in:
Philippe Pittoli 2023-04-22 15:49:19 +02:00
parent c345cd605d
commit 2f369adfef

View File

@ -1,7 +1,7 @@
all: build all: build
help: help:
@echo "usage: make [build|install|serve-doc]" @echo "usage: make [build|install|doc|serve-doc]"
ZIGOPTIM ?= ReleaseSafe ZIGOPTIM ?= ReleaseSafe
build: build:
@ -29,6 +29,9 @@ uninstall: uninstall-library uninstall-header
mrproper: mrproper:
rm -r docs zig-cache zig-out 2>/dev/null || true rm -r docs zig-cache zig-out 2>/dev/null || true
doc:
zig build-lib -femit-docs src/main.zig
DOC_HTTPD_ACCESS_LOGS ?= /tmp/access.log DOC_HTTPD_ACCESS_LOGS ?= /tmp/access.log
DOC_HTTPD_ADDR ?= 127.0.0.1 DOC_HTTPD_ADDR ?= 127.0.0.1
DOC_HTTPD_PORT ?= 35000 DOC_HTTPD_PORT ?= 35000