qdate/Makefile
2021-07-01 08:43:18 -05:00

33 lines
378 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
run:
$(REBAR) shell
publish:
$(REBAR) as pkg upgrade
$(REBAR) as pkg hex publish
$(REBAR) upgrade