From 0a6fcf6bbf9d360253a52911e04403afb4b48bfb Mon Sep 17 00:00:00 2001 From: firebadnofire Date: Wed, 17 Apr 2024 18:01:54 +0000 Subject: [PATCH] commit --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e3a4327 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +# Variables +BIN_NAME = rms-client +BIN_DEST = /usr/local/bin/$(BIN_NAME) + +# Targets +all: + @echo "Usage:" + @echo "" + @echo "make compile: only compile" + @echo "make install_bin: only move the bin to /usr/local/bin" + @echo "make install: compile, then install the bin" + @echo "make uninstall: remove the bin" + +install: compile install_bin + +compile: + cargo build --release + +install_bin: + sudo cp target/release/$(BIN_NAME) $(BIN_DEST) + +uninstall: + sudo rm -r $(BIN_DEST) target +