Skip to content

Commit

Permalink
tweak Makefile for rebar3; touch up .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Zavada committed Apr 13, 2022
1 parent 792f5e1 commit 43e496f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
_build/
rebar.lock
ebin/
deps/
tests/
/basho_bench
/rel/basho_bench
package
.rebar
*~
#*#
.DS_Store
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ PKG_ID = basho-bench-$(PKG_VERSION)
PKG_BUILD = 1
BASE_DIR = $(shell pwd)
ERLANG_BIN = $(shell dirname $(shell which erl))
REBAR ?= $(BASE_DIR)/rebar
REBAR ?= $(BASE_DIR)/rebar3
OVERLAY_VARS ?=


all: deps compile
$(REBAR) skip_deps=true escriptize
$(REBAR) escriptize

.PHONY: deps compile rel lock locked-all locked-deps

rel: deps compile
cd rel && $(REBAR) generate skip_deps=true $(OVERLAY_VARS)
cd rel && $(REBAR) generate $(OVERLAY_VARS)

deps:
$(REBAR) get-deps
Expand Down

0 comments on commit 43e496f

Please sign in to comment.