Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Makefile #27

Merged
merged 2 commits into from

2 participants

@dLuna

First commit gets rid of the assumption that rebar is in path. Specifically it will still work if "." is not part of path.

Second commit gets dependencies on basic make, which should be a program where you can do "git clone, make, use".

@uwiger uwiger merged commit a4d30cb into from
@uwiger
Owner

Thanks. Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 8, 2012
  1. @dLuna

    Don't assume that . is in path

    dLuna authored
  2. @dLuna

    Get dependencies on 'make all'

    dLuna authored
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 6 deletions.
  1. +9 −6 Makefile
View
15 Makefile
@@ -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
Something went wrong with that request. Please try again.