Files
esqlite/Makefile
Connor Rigby 1f6070a7b1 Update Makefile to use rebar3 instead of rebar
This also fixes the rebar download as GitHub doesn't like
allowing the erlang http client
2019-04-19 07:52:35 -07:00

36 lines
650 B
Makefile

PROJECT = esqlite
DIALYZER = dialyzer
REBAR3 := $(shell which rebar3 2>/dev/null || echo ./rebar3)
REBAR3_VERSION := 3.10.0
REBAR3_URL := https://github.com/erlang/rebar3/releases/download/$(REBAR3_VERSION)/rebar3
all: compile
./rebar3:
wget $(REBAR3_URL)
chmod +x ./rebar3
compile: rebar3
$(REBAR3) compile
test: compile
$(REBAR3) eunit
clean: rebar3
$(REBAR3) clean
distclean:
rm $(REBAR3)
# dializer
build-plt:
@$(DIALYZER) --build_plt --output_plt .$(PROJECT).plt \
--apps kernel stdlib
dialyze:
@$(DIALYZER) --src src --plt .$(PROJECT).plt --no_native \
-Werror_handling -Wrace_conditions -Wunmatched_returns -Wunderspecs