Files
breez-sdk-liquid/lib/core/Makefile
2025-03-23 22:59:13 +00:00

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