From 5cfc69ad47a4b9736f96bfdec9a46fe5a510f612 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 25 Jan 2015 19:16:30 +0100 Subject: [PATCH] Improve ZDOTDIR setting in Makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f59c91d..fc1e35d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ -export ZDOTDIR=${CURDIR}/tests/ZDOTDIR +# Default, can be overridden using "make test ZDOTDIR=...". +ZDOTDIR:=${CURDIR}/tests/ZDOTDIR + +# Export it, and make it absolute. +override export ZDOTDIR:=$(abspath $(ZDOTDIR)) test: cram --shell=zsh -v tests