Add Makefile, update README with install instructions, fix .gitignore

This commit is contained in:
socatlolmeow 2026-10-09 20:09:56 +02:00
commit 9c94cfbdcd
4 changed files with 63 additions and 7 deletions

19
Makefile Normal file
View file

@ -0,0 +1,19 @@
PREFIX ?= /usr/local
BINDIR := $(PREFIX)/bin
BINARY := drift
.PHONY: all build install uninstall clean
all: build
build:
cargo build --release
install: build
install -Dm755 target/release/$(BINARY) $(DESTDIR)$(BINDIR)/$(BINARY)
uninstall:
rm -f $(DESTDIR)$(BINDIR)/$(BINARY)
clean:
cargo clean