Files
vpc-shift-tool/Makefile
raven 2bb5ce0327 Rename udev rules file and update documentation
- Renamed udev rules file from 99-vpc.rules to 70-vpc.rules for better priority
- Updated all references to the file in Makefile and documentation
- Added instructions for manually creating udev rules when using precompiled binaries
- Improved installation instructions for both Windows and Linux platforms
2025-04-10 13:44:52 -04:00

38 lines
591 B
Makefile

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 -d $(DESTDIR)/etc/udev/rules.d
install -m 0755 target/$(target)/$(prog)$(extension) $(DESTDIR)$(PREFIX)/bin
install -m 0644 udev/rules.d/70-vpc.rules $(DESTDIR)/etc/udev/rules.d
clean:
cargo clean
all: build install
help:
@echo "usage: make $(prog) [debug=1]"