-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 837 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 837 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
#!/usr/bin/make
.DEFAULT_GOAL: help
help: ## Show this help
@printf "\033[33m%s:\033[0m\n" 'Available commands'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[32m%-18s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
# ----------------------------------------------------------------------------------------------------------------------
.PHONY: build
build: ## Build for wasm target
cargo build --release --target wasm32-unknown-unknown
.PHONY: check
check: build ## Check the incompatible deps
@if cargo tree 2>/dev/null | grep -q wasm-bindgen; then \
cargo tree | grep wasm-bindgen; \
else \
echo "no found wasm-bindgen"; \
fi
@if cargo tree 2>/dev/null | grep -q tokio; then \
cargo tree | grep tokio; \
else \
echo "no found tokio"; \
fi
.PHONY: clean
clean: ## Cleanup
cargo clean
%::
@true