2014-08-28 02:21:01 +00:00
|
|
|
PROJECT = riichi
|
2012-05-04 12:18:08 +00:00
|
|
|
|
2014-08-28 03:27:50 +00:00
|
|
|
DEPS = reloader eunit_formatters
|
2014-08-28 02:21:01 +00:00
|
|
|
dep_reloader = git https://github.com/oinksoft/reloader.git master
|
2014-08-28 03:27:50 +00:00
|
|
|
dep_eunit_formatters = git https://github.com/seancribbs/eunit_formatters.git master
|
2012-05-04 12:18:08 +00:00
|
|
|
|
2014-08-28 02:21:01 +00:00
|
|
|
include erlang.mk
|
2014-08-28 03:27:50 +00:00
|
|
|
|
|
|
|
ifneq ($(wildcard test/),)
|
|
|
|
ebin/$(PROJECT).app:: $(shell find test -type f -name \*_tests.erl)
|
|
|
|
$(if $(strip $?),$(call compile_erl,$?))
|
|
|
|
endif
|
|
|
|
|
|
|
|
eunit: clean deps app
|
|
|
|
$(gen_verbose) erl -noshell -pa ebin -eval 'eunit:test({application, $(PROJECT)}, [no_tty, {report, {eunit_progress, [colored, profile]}}])' -s init stop
|