Permalink
Browse files

Let Makefile's compile have dependency to fetch dependencies if not y…

…et present

Add alternative make target "docs" next to "doc" (some other (meta) Makefiles might rely on this target being present)
  • Loading branch information...
1 parent 166a81e commit 4241e96ec5cc6518bd5709586b45a758e9174d45 Uwe Dauernheim committed Apr 1, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 Makefile
View
@@ -1,4 +1,4 @@
-.PHONY: all compile clean eunit test eqc doc
+.PHONY: all compile clean deps eunit test eqc docs doc
DIRS=src
EQC=${HOME}/lib/eqc-1.0.1
@@ -7,13 +7,15 @@ BRANCH=`git branch | awk '/\*/ {print $2}'`
all: compile
-compile:
+compile: deps
./rebar compile
-
clean:
./rebar clean
+deps:
+ ./rebar get-deps
+
eunit:
./rebar eunit
@@ -23,6 +25,7 @@ test/run_eqc_test.beam: test/run_eqc_test.erl
test: script test/run_eqc_test.beam
./run_eqc.escript -m run_eqc_test -n 1000 -rpt error -pa test
+docs: doc
doc:
./rebar doc
./mk_readme.escript doc/README.md README.md

0 comments on commit 4241e96

Please sign in to comment.