Files
globalenter/Makefile
2023-02-07 12:37:01 -05:00

18 lines
498 B
Makefile

NAME = "globalenter"
build b:
@echo "building x86_64 Linux"
RUSTFLAGS=-Awarnings cargo build --release --target x86_64-unknown-linux-gnu -q
@echo "building x86_64 Windows"
RUSTFLAGS=-Awarnings cargo build --release --target x86_64-pc-windows-gnu -q
mkdir -p bin
cp target/x86_64-unknown-linux-gnu/release/$(NAME) bin/$(NAME)
chmod +x bin/$(NAME)
cp target/x86_64-pc-windows-gnu/release/$(NAME).exe bin/$(NAME).exe
chmod +x bin/$(NAME).exe
@echo "done"
clean c:
cargo clean
rm -rf bin