all: stop using src/ dir, make tests reproducible, fix CI

This commit is contained in:
ge
2025-04-22 20:14:55 +03:00
parent e79f83f800
commit b7d5f4fcb1
7 changed files with 6 additions and 32 deletions

View File

@ -1,6 +1,4 @@
SRC_DIR ?= src
DOC_DIR ?= doc
TESTS_DIR ?= .
DOC_DIR = doc
all: test
@ -8,13 +6,14 @@ test:
v test $(TESTS_DIR)
doc:
v doc -f html -m ./$(SRC_DIR) -o $(DOC_DIR)
v doc -f html -m . -o $(DOC_DIR)
serve: clean doc
v -e "import net.http.file; file.serve(folder: '$(DOC_DIR)')"
clean:
rm -r $(DOC_DIR) || true
rm -r $(DOC_DIR) >/dev/null 2>&1 || true
rm mkembedfs >/dev/null 2>&1 || true
cli:
build:
v cmd/mkembedfs -o mkembedfs