From cdb7cab42945c9996dea272e33889d9dd6c5d5b7 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Wed, 27 Jul 2022 21:19:37 -0600 Subject: [PATCH] Add Makefile --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d17a03e --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +build: + cargo build + +release: + cargo build --release + +release_all: release_linux release_win32 + +release_linux: + cargo build --release --target x86_64-unknown-linux-gnu + strip target/x86_64-unknown-linux-gnu/release/gsm-agent + +release_win32: + cargo build --release --target x86_64-pc-windows-gnu + strip target/x86_64-pc-windows-gnu/release/gsm-agent.exe + +run: + cargo run + +watch: + cargo-watch -x run