mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-23 04:22:06 +00:00
Add make test to Makefile
This commit is contained in:
parent
4819c4721b
commit
6988bfb35c
8
Makefile
8
Makefile
@ -12,13 +12,13 @@ ZSHDIR = /usr/share/zsh/vendor-completions
|
|||||||
$(eval $(call compdir,FISHDIR,fish,$(PREFIX)/share/fish/vendor_completions.d))
|
$(eval $(call compdir,FISHDIR,fish,$(PREFIX)/share/fish/vendor_completions.d))
|
||||||
|
|
||||||
FEATURES ?= default
|
FEATURES ?= default
|
||||||
|
CARGO_OPTS := --no-default-features --features "$(FEATURES)"
|
||||||
|
|
||||||
all: target/release/exa
|
all: target/release/exa
|
||||||
build: target/release/exa
|
build: target/release/exa
|
||||||
|
|
||||||
target/release/exa:
|
target/release/exa:
|
||||||
cargo build --release --no-default-features --features "$(FEATURES)"
|
cargo build --release $(CARGO_OPTS)
|
||||||
|
|
||||||
install: install-exa install-man
|
install: install-exa install-man
|
||||||
|
|
||||||
@ -38,6 +38,9 @@ install-zsh-completions:
|
|||||||
install-fish-completions:
|
install-fish-completions:
|
||||||
install -m644 -- contrib/completions.fish "$(DESTDIR)$(FISHDIR)/exa.fish"
|
install -m644 -- contrib/completions.fish "$(DESTDIR)$(FISHDIR)/exa.fish"
|
||||||
|
|
||||||
|
test: target/release/exa
|
||||||
|
cargo test --release $(CARGO_OPTS)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
-rm -f -- "$(DESTDIR)$(PREFIX)/share/man/man1/exa.1"
|
-rm -f -- "$(DESTDIR)$(PREFIX)/share/man/man1/exa.1"
|
||||||
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/exa"
|
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/exa"
|
||||||
@ -59,6 +62,7 @@ help:
|
|||||||
@echo ' install - build and install exa and manpage'
|
@echo ' install - build and install exa and manpage'
|
||||||
@echo ' install-exa - build and install exa'
|
@echo ' install-exa - build and install exa'
|
||||||
@echo ' install-man - install the manpage'
|
@echo ' install-man - install the manpage'
|
||||||
|
@echo ' test - run `cargo test`'
|
||||||
@echo ' uninstall - uninstall fish, manpage, and completions'
|
@echo ' uninstall - uninstall fish, manpage, and completions'
|
||||||
@echo ' preview-man - preview the manpage without installing'
|
@echo ' preview-man - preview the manpage without installing'
|
||||||
@echo ' help - print this help'
|
@echo ' help - print this help'
|
||||||
|
Loading…
Reference in New Issue
Block a user