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.

47 lines
702 B

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. distclean: clean
  9. rm -rf deps
  10. depends:
  11. @if test ! -d ./deps; then \
  12. $(REBAR) get-deps; \
  13. else \
  14. $(REBAR) update-deps; \
  15. fi
  16. build: depends
  17. $(REBAR) compile
  18. etap: test/etap.beam test/util.beam
  19. prove test/*.t
  20. eunit: deps/proper/ebin/proper.beam
  21. ERL_FLAGS='-pa deps/proper/ebin' $(REBAR) eunit skip_deps=true
  22. deps/proper/ebin/proper.beam: deps/proper
  23. cd deps/proper; $(REBAR) compile
  24. deps/proper:
  25. mkdir -p deps
  26. cd deps; git clone git://github.com/manopapad/proper.git
  27. check: build etap eunit
  28. %.beam: %.erl
  29. erlc -o test/ $<
  30. .PHONY: all clean depends build etap eunit proper check