You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
413 B

13 years ago
13 years ago
13 years ago
  1. all: build
  2. clean:
  3. ./rebar clean
  4. rm -rf logs
  5. rm -rf .eunit
  6. rm test/*.beam
  7. depends:
  8. @if test ! -d ./deps; then \
  9. ./rebar get-deps; \
  10. else \
  11. ./rebar update-deps; \
  12. fi
  13. build:
  14. @if test ! -d ./deps; then \
  15. ./rebar get-deps; \
  16. fi
  17. ./rebar compile
  18. etap: test/etap.beam test/util.beam
  19. prove test/*.t
  20. eunit:
  21. ./rebar eunit skip_deps=true
  22. check: build etap eunit
  23. %.beam: %.erl
  24. erlc -o test/ $<