mznotes/Makefile

19 lines
417 B
Makefile

.PHONY: all clean doc-watch doc-dependencies
all:
doc-watch:
mdbook serve docs --port 8100 --hostname 0.0.0.0
doc-dependencies: docs/src/generated/spec/index.md
generated/spec/meta.schema.json: spec/meta.schema.yml
mkdir -p generated/spec
yq -o json . $< > $@
docs/src/generated/spec/index.md: generated/spec/meta.schema.json
mkdir -p docs/src/generated/spec
node spec/generate.js
clean:
rm -rf generated