Makefile 636 B

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