Makefile: build documentation.
This commit is contained in:
parent
c345cd605d
commit
2f369adfef
1 changed files with 4 additions and 1 deletions
5
makefile
5
makefile
|
@ -1,7 +1,7 @@
|
|||
all: build
|
||||
|
||||
help:
|
||||
@echo "usage: make [build|install|serve-doc]"
|
||||
@echo "usage: make [build|install|doc|serve-doc]"
|
||||
|
||||
ZIGOPTIM ?= ReleaseSafe
|
||||
build:
|
||||
|
@ -29,6 +29,9 @@ uninstall: uninstall-library uninstall-header
|
|||
mrproper:
|
||||
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_ADDR ?= 127.0.0.1
|
||||
DOC_HTTPD_PORT ?= 35000
|
||||
|
|
Loading…
Add table
Reference in a new issue