This repository has been archived by the owner on May 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
24 changed files
with
205 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 |
---|---|---|
|
@@ -23,3 +23,4 @@ rel/example_project | |
*.swp | ||
test.app.config | ||
variables-ct* | ||
_build/ |
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,43 +1,38 @@ | ||
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 compile test qc clean get-deps build-plt dialyze | ||
ifeq ($(wildcard rebar3),rebar3) | ||
REBAR3 = $(CURDIR)/rebar3 | ||
endif | ||
|
||
all: compile | ||
REBAR3 ?= $(shell test -e `which rebar3` 2>/dev/null && which rebar3 || echo "./rebar3") | ||
|
||
deps: | ||
@$(REBAR) get-deps | ||
@$(REBAR) compile | ||
ifeq ($(REBAR3),) | ||
REBAR3 = $(CURDIR)/rebar3 | ||
endif | ||
|
||
compile: | ||
@$(REBAR) compile | ||
.PHONY: deps build dialyzer xref doc publish | ||
|
||
#test: compile | ||
# @ERL_AFLAGS="-config test/erlquad_tests.app.config" $(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 | ||
|
||
get-deps: | ||
@$(REBAR) get-deps | ||
|
||
$(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: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
%% encoding: UTF-8 | ||
{packages,[]}. | ||
{application,erlquad}. | ||
{modules,[erlquad]}. |
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
Oops, something went wrong.