exa/Makefile
David Celis 714b9c1fbe Add simple Makefile to build and install exa
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>
2015-02-24 10:48:39 -05:00

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