-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 761 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (24 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: all serve check docs svgdx-server svgdx mdbook wasm clean
all: svgdx-server svgdx
SVGDX_SERVER := target/release/svgdx-server
SVGDX := target/release/svgdx
SRC_FILES := $(shell find src/ -type f) Cargo.toml Cargo.lock
EDITOR_FILES := $(shell find editor/ -type f)
svgdx-server: $(SVGDX_SERVER)
$(SVGDX_SERVER): $(SRC_FILES) $(EDITOR_FILES)
cargo build --release --bin svgdx-server --no-default-features --features "server"
svgdx: $(SVGDX)
$(SVGDX): $(SRC_FILES)
cargo build --release --bin svgdx --no-default-features --features "cli"
serve: svgdx-server
$(SVGDX_SERVER) --open
check:
sh scripts/check.sh
docs:
sh scripts/docs.sh
mdbook:
sh scripts/mdbook.sh serve --open docs/mdbook
wasm:
sh scripts/wasm_build.sh
clean:
cargo clean