1
0

Makefile 759 B

12345678910111213141516171819202122232425
  1. PREFIX ?= /usr/local
  2. BUILD = target/release/exa
  3. $(BUILD):
  4. @which rustc > /dev/null || { echo "exa requires Rust 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 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. # BSD and OSX don't have -D to create leading directories
  13. install -dm755 $(PREFIX)/bin/ $(PREFIX)/share/man/man1/
  14. install -sm755 target/release/exa $(PREFIX)/bin/
  15. install -m644 contrib/man/*.1 $(PREFIX)/share/man/man1/
  16. install: build $(INSTALL)
  17. .PHONY: install