This repository has been archived by the owner on Jun 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
211 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,41 @@ | ||
REBAR = $(shell command -v rebar || echo ./rebar) | ||
DEPS_PLT=./.deps_plt | ||
DEPS=erts kernel stdlib | ||
REBAR3_URL=https://s3.amazonaws.com/rebar3/rebar3 | ||
|
||
.PHONY: all get-deps compile clean dialyze xref | ||
ifeq ($(wildcard rebar3),rebar3) | ||
REBAR3 = $(CURDIR)/rebar3 | ||
endif | ||
|
||
all: get-deps compile | ||
REBAR3 ?= $(shell test -e `which rebar3` 2>/dev/null && which rebar3 || echo "./rebar3") | ||
|
||
get-deps: | ||
@$(REBAR) get-deps | ||
ifeq ($(REBAR3),) | ||
REBAR3 = $(CURDIR)/rebar3 | ||
endif | ||
|
||
compile: | ||
@$(REBAR) compile | ||
.PHONY: deps build clean dialyzer xref doc test publish | ||
|
||
test: compile | ||
$(REBAR) eunit skip_deps=true | ||
all: build | ||
|
||
build: $(REBAR3) | ||
@$(REBAR3) compile | ||
|
||
$(REBAR3): | ||
wget $(REBAR3_URL) || curl -Lo rebar3 $(REBAR3_URL) | ||
@chmod a+x rebar3 | ||
|
||
clean: | ||
@$(REBAR) clean | ||
|
||
$(DEPS_PLT): | ||
@echo Building $(DEPS_PLT) | ||
dialyzer --build_plt \ | ||
--output_plt $(DEPS_PLT) \ | ||
--apps $(DEPS) | ||
#-r deps \ | ||
dialyze: compile $(DEPS_PLT) | ||
dialyzer --fullpath \ | ||
--src src \ | ||
-Wunmatched_returns \ | ||
-Werror_handling \ | ||
-Wrace_conditions \ | ||
-Wunderspecs \ | ||
-r ebin \ | ||
--plt $(DEPS_PLT) | ||
@$(REBAR3) clean | ||
|
||
dialyzer: | ||
@$(REBAR3) dialyzer | ||
|
||
xref: | ||
@$(REBAR) xref | ||
@$(REBAR3) xref | ||
|
||
doc: compile | ||
test: | ||
@$(REBAR3) eunit | ||
|
||
doc: build | ||
./scripts/hackish_inject_version_in_docs.sh | ||
./scripts/hackish_make_docs.sh | ||
|
||
publish: | ||
@$(REBAR3) as publish hex publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
%% encoding: UTF-8 | ||
{packages,[]}. | ||
{application,nlocks}. | ||
{modules,[nlocks]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.