Makefile 412 B

12345678910111213141516171819
  1. PREFIX ?= /usr/local
  2. BUILD = target/release/exa
  3. $(BUILD):
  4. @which rustc > /dev/null || { echo "Exa requires Rust-lang to compile. For installation instructions, please visit http://rust-lang.org/"; exit 1; }
  5. cargo build --release
  6. build: $(BUILD)
  7. INSTALL = $(PREFIX)/bin/exa
  8. $(INSTALL):
  9. cp target/release/exa $(PREFIX)/bin/
  10. cp man/*.1 $(PREFIX)/share/man/man1/
  11. install: build $(INSTALL)
  12. .PHONY: install