(remove): makefile, not needed & update README

This commit is contained in:
socatlolmeow 2026-10-10 11:05:00 +02:00
commit ebe54d386d
2 changed files with 8 additions and 30 deletions

View file

@ -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

View file

@ -50,23 +50,20 @@ sudo pacman -S mpv yt-dlp
```bash ```bash
git clone https://github.com/socatlolmeow/drift.git git clone https://github.com/socatlolmeow/drift.git
cd drift 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 ```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 | This installs `drift` to `~/.cargo/bin/`, which is on your `$PATH` if you installed Rust via [rustup](https://rustup.rs/).
|---|---|
| `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 |
--- ---