make update finally works

This commit is contained in:
breadone 2024-07-30 11:27:27 +12:00
parent d5b9431547
commit e27053a4cc
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
UNAME := $(shell uname)
build: build:
@cargo build @cargo build
@ -12,5 +12,10 @@ release: clean
@cargo build --release @cargo build --release
update: release update: release
@sudo cp target/release/bp /usr/bin ifeq ($(UNAME), Darwin)
@echo "Copied release file to /usr/bin" cp target/release/bp ~/bin/
endif
ifeq ($(UNAME), Linux)
sudo cp target/release/bp /usr/bin
endif