Skip to content

Commit

Permalink
Add dialyzer to makefile + minor README fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seriyps committed Apr 29, 2013
1 parent e7bed2a commit eddc755
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
deps/
.eunit/
ebin/*app
.dialyzer_plt
10 changes: 10 additions & 0 deletions Makefile
@@ -1,4 +1,5 @@
REBAR=./rebar
DIALYZER=dialyzer

all: deps compile

Expand All @@ -17,4 +18,13 @@ test: all
clean:
@$(REBAR) clean

dialyze: .dialyzer_plt ~/.dialyzer_plt
$(DIALYZER) -I deps --plts .dialyzer_plt ~/.dialyzer_plt -- ebin

~/.dialyzer_plt:
$(DIALYZER) --build_plt --apps erts kernel stdlib crypto mnesia sasl eunit xmerl

.dialyzer_plt:
$(DIALYZER) --build_plt --output_plt .dialyzer_plt -r deps/*/ebin

.PHONY: test deps
3 changes: 2 additions & 1 deletion README.md
@@ -1,4 +1,5 @@
XPath 1.0 interpreter for mochiweb's html tree
[XPath 1.0](http://www.w3.org/TR/xpath/) interpreter for
[mochiweb's html tree](https://github.com/mochi/mochiweb/blob/master/src/mochiweb_html.erl)
See src/test.erl for examples

Build
Expand Down

0 comments on commit eddc755

Please sign in to comment.