From 45151eddabd45d652e9010a39c1a06e87744986e Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 15 Jun 2021 13:03:55 +0200 Subject: [PATCH] Parametrize the rebar binary (processone/fast_tls#51) --- GNUmakefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 6186eee..ded3a6a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,4 @@ -REBAR=./rebar +REBAR ?= ./rebar REBAR_DEBUG=$(REBAR) -C rebar.debug.config REBAR_COMPILE=$(REBAR) get-deps compile REBAR_DEBUG_COMPILE=$(REBAR_DEBUG) get-deps compile @@ -11,16 +11,21 @@ debug: config_debug $(REBAR_DEBUG_COMPILE) compile: - $(REBAR_COMPILE) + $(REBAR) get-deps + $(REBAR) compile test: - $(REBAR_COMPILE) eunit + $(REBAR) get-deps + $(REBAR) compile + $(REBAR) eunit clean: -rm -rf deps ebin priv/*.so doc/* .eunit/* c_src/*.o config.tmp docs: - $(REBAR_COMPILE) doc + $(REBAR) get-deps + $(REBAR) compile + $(REBAR) doc static: config_debug $(REBAR_DEBUG_COMPILE)