From 6372d2674cffcab8e6426cba80ef216c3ae1d0cf Mon Sep 17 00:00:00 2001 From: Tyler Hughes Date: Sun, 29 Jan 2023 18:02:44 +0000 Subject: Allow git + hex deps to be cached to XDG_CACHE_HOME --- test/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index f341345..82873f0 100644 --- a/test/Makefile +++ b/test/Makefile @@ -13,6 +13,8 @@ endif # Temporary application name, taken from rule name. APP = test_$(subst -,_,$@) +CACHE_DIR = $(CURDIR)/$(APP).cache +export CACHE_DIR # Erlang, quickly! @@ -126,7 +128,7 @@ endef all:: core clean:: - $t rm -rf erl_crash.dump packages/ $(filter-out test_rebar_git/,$(wildcard test_*/)) + $t rm -rf erl_crash.dump packages/ $(filter-out test_rebar_git/,$(wildcard test_*/)) $(CACHE_DIR) init: clean $i "Prefetch Rebar if necessary" -- cgit v1.2.3