diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8c9a8f2 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +.POSIX: +.SUFFIXES: + +CARGO = cargo +WASMOPT = wasm-opt + +.PHONY: all +all: check build + +.PHONY: check +check: + $(CARGO) fmt -- --check + $(CARGO) clippy --locked --all-targets -- -D warnings + $(CARGO) test + +.PHONY: build +build: + $(CARGO) build --release + $(CARGO) build --release --target wasm32-wasi + $(WASMOPT) target/wasm32-wasi/release/hdwallet.wasm -O4 -o target/hdwallet.wasm --strip-debug --strip-producers |
