Permalink
Browse files

Merge pull request #27 from dLuna/makefile

Makefile
  • Loading branch information...
uwiger committed Oct 8, 2012
2 parents b8cb5f8 + 6a13adc commit a4d30cb6e350aa8228a4d491e7239e9a6932b2b2
Showing with 9 additions and 6 deletions.
  1. +9 −6 Makefile
View
@@ -19,29 +19,32 @@
## LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
## FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
## DEALINGS IN THE SOFTWARE.
+REBAR=$(shell which rebar || echo ./rebar)
.PHONY: all compile clean eunit test eqc doc check dialyzer
DIRS=src
-all: compile
+all: deps compile
check: compile dialyzer
compile:
- rebar compile
+ $(REBAR) compile
+deps:
+ $(REBAR) get-deps
clean:
- rebar clean
+ $(REBAR) clean
eunit:
- rebar eunit
+ $(REBAR) eunit
test: eunit
doc:
- rebar doc
+ $(REBAR) doc
dialyzer:
- rebar skip_deps=true dialyze
+ $(REBAR) skip_deps=true dialyze

0 comments on commit a4d30cb

Please sign in to comment.