2024-01-09 18:58:02 -06:00
|
|
|
all: compile
|
2019-08-21 11:59:43 -05:00
|
|
|
|
2024-01-09 18:58:02 -06:00
|
|
|
# Check if rebar3.mk exists, and if not, download it
|
|
|
|
ifeq ("$(wildcard rebar3.mk)","")
|
|
|
|
$(shell curl -O https://raw.githubusercontent.com/choptastic/rebar3.mk/master/rebar3.mk)
|
2019-08-21 11:59:43 -05:00
|
|
|
endif
|
|
|
|
|
2024-01-09 18:58:02 -06:00
|
|
|
# rebar3.mk adds a new rebar3 rule to your Makefile
|
|
|
|
# (see https://github.com/choptastic/rebar3.mk) for full info
|
|
|
|
include rebar3.mk
|
2015-07-25 21:36:35 +02:00
|
|
|
|
2024-01-09 18:58:02 -06:00
|
|
|
compile: rebar3
|
2015-07-25 21:36:35 +02:00
|
|
|
$(REBAR) compile
|
2013-03-25 16:43:27 -05:00
|
|
|
|
2024-01-09 18:58:02 -06:00
|
|
|
update: rebar3
|
2015-11-05 11:31:38 -06:00
|
|
|
$(REBAR) update
|
|
|
|
|
2015-07-25 20:34:57 +02:00
|
|
|
test: compile
|
2015-07-25 21:36:35 +02:00
|
|
|
$(REBAR) eunit
|
2013-04-23 15:37:27 -05:00
|
|
|
|
2021-07-01 08:43:18 -05:00
|
|
|
dialyzer: compile
|
|
|
|
$(REBAR) dialyzer
|
|
|
|
|
|
|
|
travis: test dialyzer
|
|
|
|
|
2023-08-12 19:44:13 -05:00
|
|
|
dev:
|
|
|
|
mkdir -p _checkouts
|
|
|
|
cd _checkouts; git clone https://github.com/choptastic/qdate_localtime
|
|
|
|
|
|
|
|
|
2024-01-09 18:58:02 -06:00
|
|
|
run: rebar3
|
2015-07-27 14:25:21 -05:00
|
|
|
$(REBAR) shell
|
2015-07-25 21:36:35 +02:00
|
|
|
|
2024-01-09 18:58:02 -06:00
|
|
|
publish: rebar3
|
|
|
|
$(REBAR) hex publish
|
2015-07-25 21:36:35 +02:00
|
|
|
|