]> Sergey Matveev's repositories - zsh-autoenv.git/blob - Makefile
Add doc for _autoenv_deauthorize
[zsh-autoenv.git] / Makefile
1 .PHONY: itest test
2
3 test:
4         ZDOTDIR="${PWD}/tests" cram --shell=zsh -v tests
5
6 itest:
7         ZDOTDIR="${PWD}/tests" cram -i --shell=zsh tests
8
9 # Define targets for test files, with relative and abolute path.
10 # Use verbose output, which is useful with Vim's 'errorformat'.
11 TESTS:=$(wildcard tests/*.t)
12
13 uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
14 _TESTS_REL_AND_ABS:=$(call uniq,$(abspath $(TESTS)) $(TESTS))
15 $(_TESTS_REL_AND_ABS):
16         ZDOTDIR="${PWD}/tests" cram --shell=zsh -v $@
17 .PHONY: $(_TESTS_REL_AND_ABS)