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/). ---