diff options
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile index a66e9db..39973ce 100644 --- a/test/Makefile +++ b/test/Makefile @@ -94,17 +94,25 @@ endef # Main targets. -.PHONY: all clean build +.PHONY: all clean init all:: core clean:: $t rm -rf erl_crash.dump packages/ test_*/ -build: +init: clean + $i "Prefetch Rebar if necessary" + $t if [ ! -d test_rebar_git ]; then \ + git clone -q -n -- https://github.com/rebar/rebar test_rebar_git; \ + fi + $i "Generate a bleeding edge Erlang.mk" $t cd .. && $(MAKE) $v +REBAR_GIT = file://$(CURDIR)/test_rebar_git +export REBAR_GIT + # Core. .PHONY: core @@ -139,7 +147,7 @@ packages: $(addprefix pkg-,$(PACKAGES)) define pkg_target .PHONY: pkg-$1 -pkg-$1: build clean +pkg-$1: init # Make sure $@ is defined inside the define. $(eval @ = pkg-$1) |