breadpi-client/Makefile
2024-07-30 11:27:27 +12:00

22 lines
283 B
Makefile

UNAME := $(shell uname)
build:
@cargo build
run: build
@./target/debug/bp
clean:
@rm -rf target
release: clean
@cargo build --release
update: release
ifeq ($(UNAME), Darwin)
cp target/release/bp ~/bin/
endif
ifeq ($(UNAME), Linux)
sudo cp target/release/bp /usr/bin
endif