-
Notifications
You must be signed in to change notification settings - Fork 127
/
Makefile
34 lines (29 loc) · 1.08 KB
/
Makefile
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
clean: clean-nodejs clean-rust
rm -rf test-ledger
clean-nodejs:
rm -rf examples/typescript/dist
rm -rf examples/typescript/node_modules
rm -rf yellowstone-grpc-client-nodejs/dist
rm -rf yellowstone-grpc-client-nodejs/node_modules
rm -rf yellowstone-grpc-client-nodejs/src/encoding
rm -rf yellowstone-grpc-client-nodejs/src/grpc
clean-rust:
rm -rf target
rm -rf yellowstone-grpc-client-nodejs/solana-encoding-wasm/target
solana-encoding-wasm-clippy:
cd yellowstone-grpc-client-nodejs/solana-encoding-wasm && \
cargo clippy --target wasm32-unknown-unknown --all-targets
solana-encoding-wasm-build:
# RUSTFLAGS to disable `mold`
cd yellowstone-grpc-client-nodejs/solana-encoding-wasm && \
RUSTFLAGS="" cargo build \
--target wasm32-unknown-unknown \
--release
cd yellowstone-grpc-client-nodejs/solana-encoding-wasm && \
rm -rf ../src/encoding/ && \
wasm-bindgen \
--target nodejs \
--out-dir ../src/encoding/ \
target/wasm32-unknown-unknown/release/yellowstone_grpc_solana_encoding_wasm.wasm && \
mkdir -p ../dist/encoding/ && \
cp -ap ../src/encoding/ ../dist/