forked from svenstaro/genact
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (22 loc) · 786 Bytes
/
Makefile
File metadata and controls
26 lines (22 loc) · 786 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
.PHONY: build-linux
build-linux:
cargo build --target x86_64-unknown-linux-musl --release
strip target/x86_64-unknown-linux-musl/release/genact
upx --lzma target/x86_64-unknown-linux-musl/release/genact
.PHONY: build-win
build-win:
RUSTFLAGS="-C linker=x86_64-w64-mingw32-gcc" cargo build --target x86_64-pc-windows-gnu --release
strip target/x86_64-pc-windows-gnu/release/genact.exe
upx --lzma target/x86_64-pc-windows-gnu/release/genact.exe
.PHONY: build-apple
build-apple:
cargo build --target x86_64-apple-darwin --release
strip target/x86_64-apple-darwin/release/genact
upx --lzma target/x86_64-apple-darwin/release/genact
.PHONY: build-web
build-web:
RUSTFLAGS='--cfg getrandom_backend="wasm_js"' trunk build --release
.PHONY: clean
clean:
cargo clean
trunk clean