aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorTyler Hughes <[email protected]>2023-01-29 18:02:44 +0000
committerLoïc Hoguin <[email protected]>2023-05-15 13:47:54 +0200
commit6372d2674cffcab8e6426cba80ef216c3ae1d0cf (patch)
tree0fa214351baa313eb351bbeef0439f67e19972ed /test/Makefile
parenta79d0c00534584ffdefd3179256cac8e34b4febe (diff)
downloaderlang.mk-6372d2674cffcab8e6426cba80ef216c3ae1d0cf.tar.gz
erlang.mk-6372d2674cffcab8e6426cba80ef216c3ae1d0cf.tar.bz2
erlang.mk-6372d2674cffcab8e6426cba80ef216c3ae1d0cf.zip
Allow git + hex deps to be cached to XDG_CACHE_HOME
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile4
1 files changed, 3 insertions, 1 deletions
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"