mirror of
https://github.com/socatlolmeow/drift.git
synced 2026-11-03 19:27:19 +00:00
Add Makefile, update README with install instructions, fix .gitignore
This commit is contained in:
parent
573faaeff7
commit
9c94cfbdcd
4 changed files with 63 additions and 7 deletions
19
Makefile
Normal file
19
Makefile
Normal 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
|
||||
Loading…
Reference in a new issue