blob: 7142fc3d1250ae9d6a0e8e6a05e82256bb7338bb [file] [log] [blame]
ERL ?= erl
ERLC ?= erlc
REBAR ?= rebar
all: compile
static:
@USE_STATIC_ICU="1" COUCHDB_STATIC="1" $(REBAR) compile
compile:
@$(REBAR) compile
clean:
@$(REBAR) clean
@rm -f t/*.beam
test:
@$(ERLC) -o t/ t/etap.erl
prove t/*.t
verbose-test:
@$(ERLC) -o t/ t/etap.erl
prove -v t/*.t
cover: test
@ERL_FLAGS="-pa ./ebin -pa ./t" \
$(ERL) -detached -noshell -eval 'etap_report:create()' -s init stop