Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (48 sloc) 1.44 KB
REBAR=./rebar
ALL_APPS_DIRS=apps/*
ALL_EXAMPLE_DIRS=apps/examples/*
CT_LOG_DIRS=apps/ctest/logs
all: deps compile
deps: deps/erlangsp
deps/erlangsp:
@${REBAR} get-deps
compile:
@${REBAR} compile
dialyze: all
@dialyzer -Wrace_conditions ${ALL_APPS_DIRS}/ebin ${ALL_EXAMPLE_DIRS}/ebin
gc: crash
@echo 'Removing all emacs backup files'
@find . -name "*~" -exec rm -f {} \;
@find . -name "erl_crash.dump" -exec rm -f {} \;
@echo 'Removing all compile artifacts'
@rm -f ${ALL_APPS_DIRS}/src/*.P
@rm -f ${ALL_APPS_DIRS}/src/*/*.P
@rm -f ${ALL_APPS_DIRS}/src/*.beam
@rm -f ${ALL_APPS_DIRS}/src/*/*.beam
@echo 'Removing all example compile artifacts'
@rm -f ${ALL_EXAMPLE_DIRS}/src/*.P
@rm -f ${ALL_EXAMPLE_DIRS}/src/*/*.P
@rm -f ${ALL_EXAMPLE_DIRS}/src/*.beam
@rm -f ${ALL_EXAMPLE_DIRS}/src/*/*.beam
@echo 'Removing all common_test logs'
@rm -rf ${CT_LOG_DIRS}/*.*
@rm -f ${CT_LOG_DIRS}/variables-ct*
rel: all
@echo 'Generating erlangsp release'
@(cd rel; .${REBAR} generate)
clean: gc
@${REBAR} clean
crash:
@find . -name "erl_crash.dump" -exec rm -f {} \;
relclean: crash
@rm -rf rel/erlangsp
realclean: clean relclean
@${REBAR} del-deps
@rm -rf deps/*
test: all coop_test examples_test
coop_test: all
@(cd apps/ctest; ct_run -spec coop.spec -pa ../coop/ebin -pa ../../deps/*/ebin)
examples_test: all
@(cd apps/ctest; ct_run -spec examples.spec -pa ../coop/ebin -pa ../examples/*/ebin -pa ../../deps/*/ebin)
ct: coop_test
et: examples_test