Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gregory Burd
committed
Mar 7, 2013
1 parent
446362d
commit f224c61
Showing
1 changed file
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,59 @@ | ||
TARGET= wterl | ||
|
||
all: | ||
./rebar compile eunit | ||
REBAR= ./rebar | ||
#REBAR= /usr/bin/env rebar | ||
ERL= /usr/bin/env erl | ||
DIALYZER= /usr/bin/env dialyzer | ||
|
||
|
||
.PHONY: plt analyze all deps compile get-deps clean | ||
|
||
all: compile | ||
|
||
deps: get-deps | ||
|
||
get-deps: | ||
@$(REBAR) get-deps | ||
|
||
update-deps: | ||
@$(REBAR) update-deps | ||
|
||
c_src/wterl.o: | ||
touch c_src/wterl.c | ||
|
||
ebin/app_helper.beam: | ||
@echo You need to: | ||
@echo cp ../riak/deps/riak_core/ebin/app_helper.beam ebin | ||
@/bin/false | ||
|
||
compile: c_src/wterl.o ebin/app_helper.beam | ||
@$(REBAR) compile | ||
|
||
clean: | ||
./rebar clean | ||
@$(REBAR) clean | ||
|
||
test: eunit | ||
|
||
eunit: compile | ||
@$(REBAR) eunit skip_deps=true | ||
|
||
eunit_console: | ||
@$(ERL) -pa .eunit deps/*/ebin | ||
|
||
plt: compile | ||
@$(DIALYZER) --build_plt --output_plt .$(TARGET).plt -pa deps/*/ebin --apps kernel stdlib | ||
|
||
analyze: compile | ||
$(DIALYZER) --plt .$(TARGET).plt -pa deps/*/ebin ebin | ||
|
||
repl: | ||
$(ERL) -pz deps/*/ebin -pa ebin | ||
|
||
gdb-repl: | ||
USE_GDB=1 $(ERL) -pz deps/*/ebin -pa ebin | ||
|
||
eunit-repl: | ||
$(ERL) -pa .eunit -pz deps/*/ebin -pz ebin -exec 'cd(".eunit").' | ||
|
||
gdb-eunit-repl: | ||
USE_GDB=1 $(ERL) -pa .eunit -pz deps/*/ebin -pz ebin -exec 'cd(".eunit").' |