update makefile

This commit is contained in:
breadone 2024-07-28 16:14:18 +12:00
parent 7972e5bb35
commit 17d9e7cad7
No known key found for this signature in database
2 changed files with 15 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/target
**/.DS_Store

View File

@ -2,9 +2,21 @@
build:
@cargo build
release:
clean:
@rm -rf target
release: clean
@cargo build --release
update: release
@sudo cp target/release/bp /usr/bin
@echo "Copied release file to /usr/bin"
test:
if [ -eq $(uname), Darwin ]; then
echo "macos"
fi
if [ -eq $(uname), Linux ]; then
echo "linux"
fi