Browse Source

Update Makefile and add rebar executable.

Roberto Ostinelli 9 years ago
parent
commit
6f565df28e
2 changed files with 6 additions and 18 deletions
  1. 6 18
      Makefile
  2. BIN
      rebar

+ 6 - 18
Makefile

@@ -1,30 +1,18 @@
 PROJECT_DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
 PROJECT_DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
 
 
 all:
 all:
-	@rebar compile
+	@./rebar compile
 
 
 clean:
 clean:
-	@rebar clean
+	@./rebar clean
 	@find $(PROJECT_DIR)/. -name "erl_crash\.dump" | xargs rm -f
 	@find $(PROJECT_DIR)/. -name "erl_crash\.dump" | xargs rm -f
-
-deps: clean
-	@rebar delete-deps
-	@rebar get-deps
+	@find $(PROJECT_DIR)/. -name "*.beam" | xargs rm -f
 
 
 dialyze:
 dialyze:
-	@dialyzer -n -c src/*.erl
-
-run:
-	@erl -pa ebin \
-	-name syn@127.0.0.1 \
-	+K true \
-	+P 5000000 \
-	+Q 1000000 \
-	-mnesia schema_location ram \
-	-eval 'syn:start().'
+	@dialyzer -n -c $(PROJECT_DIR)/src/*.erl
 
 
 tests: all
 tests: all
 	ct_run -dir $(PROJECT_DIR)/test -logdir $(PROJECT_DIR)/test/results \
 	ct_run -dir $(PROJECT_DIR)/test -logdir $(PROJECT_DIR)/test/results \
-	-pa $(PROJECT_DIR)/ebin
+	-pa $(PROJECT_DIR)/ebin $(PROJECT_DIR)/deps/*/ebin
 
 
-travis: tests
+travis: all tests

BIN
rebar