-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile for automating and documenting common recipes
- Loading branch information
Showing
4 changed files
with
69 additions
and
2 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,4 +1,6 @@ | ||
.eqc-info | ||
.eunit/ | ||
.qc/ | ||
deps/ | ||
ebin/ | ||
erl_crash.dump |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
REBAR?=./rebar | ||
|
||
.PHONY: all clean deps compile xref doc test eunit eqc proper triq \ | ||
compile-for-eunit compile-for-eqc compile-for-proper compile-for-triq | ||
|
||
all: compile | ||
|
||
deps: | ||
$(REBAR) get-deps | ||
|
||
clean: | ||
$(REBAR) clean | ||
@rm -rf .qc | ||
|
||
compile: | ||
$(REBAR) compile | ||
|
||
xref: | ||
$(REBAR) xref skip_deps=true | ||
|
||
doc: | ||
@rm -rf README.md doc/edoc-info doc/*.md | ||
$(REBAR) -C rebar.config.doc get-deps compile | ||
$(REBAR) -C rebar.config.doc doc skip_deps=true | ||
|
||
test: eunit | ||
|
||
eunit: compile-for-eunit | ||
$(REBAR) eunit skip_deps=true | ||
|
||
eqc: compile-for-eqc | ||
$(REBAR) eqc skip_deps=true | ||
|
||
proper: compile-for-proper | ||
@echo "rebar does not implement a 'proper' command" && false | ||
|
||
triq: compile-for-triq | ||
$(REBAR) triq skip_deps=true | ||
|
||
compile-for-eunit: | ||
$(REBAR) compile eunit compile_only=true | ||
|
||
compile-for-eqc: | ||
$(REBAR) -D QC -D QC_EQC compile eqc compile_only=true | ||
|
||
compile-for-proper: | ||
$(REBAR) -D QC -D QC_PROPER compile eqc compile_only=true | ||
|
||
compile-for-triq: | ||
$(REBAR) -D QC -D QC_TRIQ compile triq compile_only=true |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
%%% -*- mode: erlang -*- | ||
|
||
{edoc_opts, [{doclet, asciiedown_doclet} | ||
, {app_default, "http://www.erlang.org/doc/man"} | ||
, {new, true} | ||
, {packages, false} | ||
, {stylesheet, ""} % don't copy stylesheet.css | ||
, {image, ""} % don't copy erlang.png | ||
, {top_level_readme, {"./README.md", "https://github.com/ubf/ubf-jsonrpc"}} | ||
]}. | ||
|
||
{deps, [{meck, "", {git, "git://github.com/norton/meck.git"}} | ||
, {edown, "", {git, "git://github.com/norton/edown.git"}} | ||
, {asciiedoc, "", {git, "git://github.com/norton/asciiedoc.git"}} | ||
]}. |