38 lines
478 B
Makefile
38 lines
478 B
Makefile
REBAR_PATH = $(shell which rebar3)
|
|
|
|
ifeq ($(REBAR_PATH),)
|
|
REBAR = $(shell pwd)/rebar3
|
|
else
|
|
REBAR = rebar3
|
|
endif
|
|
|
|
|
|
all: compile
|
|
|
|
compile:
|
|
$(REBAR) compile
|
|
|
|
update:
|
|
$(REBAR) update
|
|
|
|
test: compile
|
|
$(REBAR) eunit
|
|
|
|
dialyzer: compile
|
|
$(REBAR) dialyzer
|
|
|
|
travis: test dialyzer
|
|
|
|
dev:
|
|
mkdir -p _checkouts
|
|
cd _checkouts; git clone https://github.com/choptastic/qdate_localtime
|
|
|
|
|
|
run:
|
|
$(REBAR) shell
|
|
|
|
publish:
|
|
$(REBAR) as pkg upgrade
|
|
$(REBAR) as pkg hex publish
|
|
$(REBAR) upgrade
|
|
|