mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-18 02:05:11 +00:00
714b9c1fbe
This patch adds a Makefile that will build and install exa along with its recently added manual page. This provides a little bit of a nicer installation path while we wait for Cargo to, hopefully, provide its own built-in installation method for packages that contain binaries. Signed-off-by: David Celis <me@davidcel.is>
20 lines
412 B
Makefile
20 lines
412 B
Makefile
PREFIX ?= /usr/local
|
|
|
|
BUILD = target/release/exa
|
|
|
|
$(BUILD):
|
|
@which rustc > /dev/null || { echo "Exa requires Rust-lang to compile. For installation instructions, please visit http://rust-lang.org/"; exit 1; }
|
|
cargo build --release
|
|
|
|
build: $(BUILD)
|
|
|
|
INSTALL = $(PREFIX)/bin/exa
|
|
|
|
$(INSTALL):
|
|
cp target/release/exa $(PREFIX)/bin/
|
|
cp man/*.1 $(PREFIX)/share/man/man1/
|
|
|
|
install: build $(INSTALL)
|
|
|
|
.PHONY: install
|