Parametrize the rebar binary (processone/fast_tls#51)

This commit is contained in:
Badlop
2021-06-15 13:03:55 +02:00
parent ca499cf576
commit 45151eddab

View File

@@ -1,4 +1,4 @@
REBAR=./rebar REBAR ?= ./rebar
REBAR_DEBUG=$(REBAR) -C rebar.debug.config REBAR_DEBUG=$(REBAR) -C rebar.debug.config
REBAR_COMPILE=$(REBAR) get-deps compile REBAR_COMPILE=$(REBAR) get-deps compile
REBAR_DEBUG_COMPILE=$(REBAR_DEBUG) get-deps compile REBAR_DEBUG_COMPILE=$(REBAR_DEBUG) get-deps compile
@@ -11,16 +11,21 @@ debug: config_debug
$(REBAR_DEBUG_COMPILE) $(REBAR_DEBUG_COMPILE)
compile: compile:
$(REBAR_COMPILE) $(REBAR) get-deps
$(REBAR) compile
test: test:
$(REBAR_COMPILE) eunit $(REBAR) get-deps
$(REBAR) compile
$(REBAR) eunit
clean: clean:
-rm -rf deps ebin priv/*.so doc/* .eunit/* c_src/*.o config.tmp -rm -rf deps ebin priv/*.so doc/* .eunit/* c_src/*.o config.tmp
docs: docs:
$(REBAR_COMPILE) doc $(REBAR) get-deps
$(REBAR) compile
$(REBAR) doc
static: config_debug static: config_debug
$(REBAR_DEBUG_COMPILE) $(REBAR_DEBUG_COMPILE)