mznotes/Makefile

20 lines
417 B
Makefile
Raw Permalink Normal View History

2023-03-28 02:34:46 +00:00
.PHONY: all clean doc-watch doc-dependencies
2023-03-23 18:32:34 +00:00
2023-03-28 02:34:46 +00:00
all:
2023-03-23 18:32:34 +00:00
2023-03-28 02:34:46 +00:00
doc-watch:
mdbook serve docs --port 8100 --hostname 0.0.0.0
2023-03-23 18:32:34 +00:00
2023-03-28 02:34:46 +00:00
doc-dependencies: docs/src/generated/spec/index.md
generated/spec/meta.schema.json: spec/meta.schema.yml
2023-03-30 01:56:52 +00:00
mkdir -p generated/spec
yq -o json . $< > $@
2023-03-28 02:34:46 +00:00
docs/src/generated/spec/index.md: generated/spec/meta.schema.json
2023-03-30 01:56:52 +00:00
mkdir -p docs/src/generated/spec
2023-03-28 02:34:46 +00:00
node spec/generate.js
2023-03-23 18:32:34 +00:00
clean:
rm -rf generated