|
@ -8,6 +8,8 @@ clean: |
|
|
rm -rf .eunit |
|
|
rm -rf .eunit |
|
|
rm -f test/*.beam |
|
|
rm -f test/*.beam |
|
|
|
|
|
|
|
|
|
|
|
distclean: clean |
|
|
|
|
|
rm -rf deps |
|
|
|
|
|
|
|
|
depends: |
|
|
depends: |
|
|
@if test ! -d ./deps; then \
|
|
|
@if test ! -d ./deps; then \
|
|
@ -25,13 +27,21 @@ etap: test/etap.beam test/util.beam |
|
|
prove test/*.t |
|
|
prove test/*.t |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eunit: |
|
|
|
|
|
$(REBAR) eunit skip_deps=true |
|
|
|
|
|
|
|
|
eunit: deps/proper/ebin/proper.beam |
|
|
|
|
|
ERL_FLAGS='-pa deps/proper/ebin' $(REBAR) eunit skip_deps=true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check: build etap eunit |
|
|
|
|
|
|
|
|
deps/proper/ebin/proper.beam: deps/proper |
|
|
|
|
|
cd deps/proper; $(REBAR) compile |
|
|
|
|
|
|
|
|
|
|
|
deps/proper: |
|
|
|
|
|
mkdir -p deps |
|
|
|
|
|
cd deps; git clone git://github.com/manopapad/proper.git |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check: build etap eunit |
|
|
|
|
|
|
|
|
%.beam: %.erl |
|
|
%.beam: %.erl |
|
|
erlc -o test/ $< |
|
|
erlc -o test/ $< |
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all clean depends build etap eunit proper check |