mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-17 13:04:20 +01:00
31 lines
607 B
Makefile
31 lines
607 B
Makefile
UNAME := $(shell uname)
|
|
|
|
ifeq ($(UNAME), Darwin)
|
|
CLANG_PREFIX += AR=$(shell brew --prefix llvm)/bin/llvm-ar CC=$(shell brew --prefix llvm)/bin/clang
|
|
endif
|
|
|
|
init:
|
|
cargo install wasm-pack
|
|
|
|
clippy: cargo-clippy wasm-clippy
|
|
|
|
test: cargo-test wasm-test
|
|
|
|
cargo-clippy:
|
|
cargo clippy -- -D warnings
|
|
|
|
cargo-test:
|
|
cargo test
|
|
|
|
wasm-clippy:
|
|
$(CLANG_PREFIX) cargo clippy --target=wasm32-unknown-unknown -- -D warnings
|
|
|
|
wasm-test:
|
|
$(CLANG_PREFIX) wasm-pack test --headless --firefox
|
|
|
|
test-chrome:
|
|
$(CLANG_PREFIX) wasm-pack test --headless --chrome
|
|
|
|
test-safari:
|
|
$(CLANG_PREFIX) wasm-pack test --headless --safari
|