mirror of
https://github.com/socatlolmeow/drift.git
synced 2026-11-03 11:20:20 +00:00
19 lines
307 B
Makefile
19 lines
307 B
Makefile
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
|