more usable

This commit is contained in:
Joey Eamigh
2023-02-07 11:09:50 -05:00
parent 20d2ecc5f6
commit 641a28ce68
6 changed files with 56 additions and 12 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
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