-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a serialization bug, switch to rebar3
- Loading branch information
Showing
5 changed files
with
99 additions
and
26 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 |
---|---|---|
|
@@ -4,4 +4,3 @@ ebin | |
.eunit | ||
.rebar | ||
_build | ||
rebar.lock |
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,22 +1,30 @@ | ||
NAME=mondemand | ||
|
||
REBAR3=rebar3 | ||
all: | ||
@rebar get-deps compile | ||
$(REBAR3) compile | ||
|
||
dialyzer: | ||
$(REBAR3) as test do dialyzer | ||
|
||
perf: | ||
@(cd tests ; erlc -I../src -I../include *.erl) | ||
test: | ||
$(REBAR3) as test do dialyzer,eunit,cover | ||
|
||
edoc: | ||
@rebar skip_deps=true doc | ||
# Compile and run unit test for individual modules: 'make test-oxgw_util' | ||
# or 'make test-oxgw_util test-oxgw_request' | ||
test-%: src/%.erl | ||
$(REBAR3) as test do eunit -m $* | ||
|
||
check: | ||
@rm -rf .eunit | ||
@mkdir -p .eunit | ||
@dialyzer --src src -I deps -pa deps/parse_trans/ebin | ||
@rebar skip_deps=true eunit | ||
name: | ||
@echo $(NAME) | ||
|
||
version: | ||
@echo $(shell awk 'match($$0, /[0-9]+\.[0-9]+(\.[0-9]+)+/){print substr($$0, RSTART,RLENGTH); exit}' ChangeLog) | ||
|
||
clean: | ||
@rebar clean | ||
if test -d _build; then $(REBAR3) clean; fi | ||
|
||
maintainer-clean: clean | ||
rm -rf _build | ||
|
||
maintainer-clean: | ||
@rebar clean | ||
@rebar delete-deps | ||
@rm -rf deps | ||
.PHONY: all test name version clean maintainer-clean |
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