This commit is contained in:
firebadnofire 2024-04-17 18:01:54 +00:00
parent 5b568e14a6
commit 0a6fcf6bbf
Signed by: firebadnofire
GPG Key ID: EF6539F1FA16DEB7
1 changed files with 24 additions and 0 deletions

24
Makefile Normal file
View File

@ -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