Files
globalenter/Makefile
Joey Eamigh 641a28ce68 more usable
2023-02-07 11:09:50 -05:00

17 lines
515 B
Makefile

NAME = "globalenter"
build b:
@echo "building x86_64 Linux"
RUSTFLAGS=-Awarnings cargo build --release --target x86_64-unknown-linux-gnu -q --frozen
@echo "building x86_64 Windows"
RUSTFLAGS=-Awarnings cargo build --release --target x86_64-pc-windows-gnu -q --frozen
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