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
390 B

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