From 557bb7e0c6a0e5e54e1bf1dc3bb5154aaeedbd53 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 26 Oct 2015 14:18:54 +0000 Subject: [PATCH] 'make test': Allow specifying the zsh binary to use. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d77c229..d58f8cb 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ NAME=zsh-syntax-highlighting INSTALL?=install -c PREFIX?=/usr/local SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME) +ZSH?=zsh # zsh binary to run tests with # Have the default target do nothing. all: @@ -22,7 +23,7 @@ test: for test in highlighters/*; do \ if [ -d $$test/test-data ]; then \ echo "Running test $${test##*/}"; \ - zsh -f tests/test-highlighting.zsh "$${test##*/}"; \ + $(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \ : $$(( result |= $$? )); \ fi \ done; \