Skip to content

Commit

Permalink
Merge pull request #290 from mqudsi/make_test
Browse files Browse the repository at this point in the history
Add make test to Makefile
  • Loading branch information
ogham authored Oct 15, 2017
2 parents 8123122 + 4ebcb38 commit 0eb7966
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ ZSHDIR = /usr/share/zsh/vendor-completions
$(eval $(call compdir,FISHDIR,fish,$(PREFIX)/share/fish/vendor_completions.d))

FEATURES ?= default

CARGO_OPTS := --no-default-features --features "$(FEATURES)"

all: target/release/exa
build: target/release/exa

target/release/exa:
cargo build --release --no-default-features --features "$(FEATURES)"
cargo build --release $(CARGO_OPTS)

install: install-exa install-man

Expand All @@ -38,6 +38,11 @@ install-zsh-completions:
install-fish-completions:
install -m644 -- contrib/completions.fish "$(DESTDIR)$(FISHDIR)/exa.fish"

test: target/release/exa
cargo test --release $(CARGO_OPTS)

check: test

uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/share/man/man1/exa.1"
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/exa"
Expand All @@ -59,6 +64,7 @@ help:
@echo ' install - build and install exa and manpage'
@echo ' install-exa - build and install exa'
@echo ' install-man - install the manpage'
@echo ' test - run `cargo test`'
@echo ' uninstall - uninstall fish, manpage, and completions'
@echo ' preview-man - preview the manpage without installing'
@echo ' help - print this help'
Expand Down

0 comments on commit 0eb7966

Please sign in to comment.