From ebe54d386d7d7a01712e2ca7b88247a8f9283d22 Mon Sep 17 00:00:00 2001 From: socatlolmeow Date: Sat, 10 Oct 2026 11:05:00 +0200 Subject: [PATCH] (remove): makefile, not needed & update README --- Makefile | 19 ------------------- README.md | 19 ++++++++----------- 2 files changed, 8 insertions(+), 30 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index aa2901a..0000000 --- a/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/README.md b/README.md index d4e3184..57030ee 100644 --- a/README.md +++ b/README.md @@ -50,23 +50,20 @@ sudo pacman -S mpv yt-dlp ```bash git clone https://github.com/socatlolmeow/drift.git cd drift -sudo make install +cargo build --release ``` -This installs `drift` to `/usr/local/bin`. To install to `/usr/bin` instead: +Then copy the binary to somewhere on your `$PATH`: ```bash -sudo make install PREFIX=/usr +sudo cp target/release/drift /usr/local/bin/ ``` -### Other make targets +Or install directly with cargo: +```bash +cargo install --path . +``` -| Command | Description | -|---|---| -| `make` | Build (debug skipped, release only) | -| `make build` | Same as above | -| `sudo make install` | Build and install to `$PREFIX/bin` | -| `sudo make uninstall` | Remove the installed binary | -| `make clean` | Remove build artifacts | +This installs `drift` to `~/.cargo/bin/`, which is on your `$PATH` if you installed Rust via [rustup](https://rustup.rs/). ---