Permalink
Browse files

rebarize

  • Loading branch information...
1 parent a3d4598 commit 179c87f5bb7bd39db9592a707b52a881f2316462 @ostinelli committed Sep 16, 2011
Showing with 27 additions and 24 deletions.
  1. +18 −0 .gitignore
  2. +9 −24 Makefile
View
@@ -0,0 +1,18 @@
+ebin
+logs
+erl_crash.dump
+*.beam
+
+# -------\/------- OSX ignores
+
+# store
+.DS_Store
+
+# thumbs
+._*
+
+# files that might appear on external disk
+.Spotlight-V100
+.Trashes
+
+# -------\/------- OSX ignores
View
@@ -1,34 +1,19 @@
-EBIN_DIR := ebin
-SRC_DIR := src
-EXAMPLES_DIR := examples
-INCLUDE_DIR := include
-ERLC := erlc
-ERLC_FLAGS := -W -I $(INCLUDE_DIR) -o $(EBIN_DIR)
+EXAMPLES_DIR:=examples
+REBAR_CONFIG:=$(PWD)/rebar.config
all: compile
compile:
@rebar compile
-
-debug:
- @rebar debug_info=true compile
clean:
@rebar clean
- @find . -name "erl_crash\.dump" | xargs rm -f
-
-dialyzer: check-plt
- @rebar dialyze
-
-check-plt: compile
- @rebar check-plt
-
-build-plt: compile
- @rebar build-plt
-
-example: compile
- $(ERLC) $(ERLC_FLAGS) $(EXAMPLES_DIR)/*.erl
+ @find $(PWD)/. -name "erl_crash\.dump" | xargs rm -f
tests: compile
- @mkdir -p $(PWD)/test/results
- @ct_run -suite $(PWD)/misultin_SUITE -pa $(PWD)/ebin -logdir $(PWD)/test/results
+ @rebar ct
+
+debug: clean
+ @echo {erl_opts, [{d, log_debug}]}. > $(REBAR_CONFIG)
+ @rebar debug_info=true compile
+ @rm $(REBAR_CONFIG)

0 comments on commit 179c87f

Please sign in to comment.