This commit is contained in:
2025-01-29 16:29:56 -05:00
parent 464830469e
commit f538387025
6 changed files with 5634 additions and 0 deletions

35
Makefile Normal file
View File

@@ -0,0 +1,35 @@
prog :=shift_tool
debug ?=
$(info debug is $(debug))
ifdef debug
release :=
target :=debug
extension :=-debug
else
release :=--release
target :=release
extension :=
endif
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
build:
cargo build $(release)
install:
install -d $(DESTDIR)$(PREFIX)/bin
install -m 0755 target/$(target)/$(prog)$(extension) $(DESTDIR)$(PREFIX)/bin
clean:
cargo clean
all: build install
help:
@echo "usage: make $(prog) [debug=1]"