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.

66 lines
1.2 KiB

пре 12 година
пре 12 година
пре 12 година
пре 12 година
пре 11 година
пре 13 година
  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. git clean -fxd
  10. devmarker:
  11. @touch .jiffy.dev
  12. depends: devmarker
  13. @if test ! -d ./deps/proper; then \
  14. $(REBAR) get-deps; \
  15. fi
  16. build: depends
  17. $(REBAR) compile
  18. eunit: build
  19. $(REBAR) eunit skip_deps=true
  20. check: build eunit dialyzer
  21. %.beam: %.erl
  22. erlc -o test/ $<
  23. DIALYZER = dialyzer
  24. DIALYZER_OPTS ?=
  25. JIFFY_PLT = jiffy.plt
  26. ERLANG_DIALYZER_APPS ?= asn1 \
  27. compiler \
  28. crypto \
  29. edoc \
  30. erts \
  31. inets \
  32. kernel \
  33. mnesia \
  34. public_key \
  35. ssl \
  36. stdlib \
  37. syntax_tools \
  38. tools \
  39. xmerl
  40. $(JIFFY_PLT):
  41. @echo "Missing $(JIFFY_PLT). Please wait while a new PLT is compiled."
  42. $(DIALYZER) --build_plt --apps $(ERLANG_DIALYZER_APPS) --output_plt $(JIFFY_PLT)
  43. dialyzer: $(JIFFY_PLT) build
  44. @$(DIALYZER) $(DIALYZER_OPTS) --plts $(JIFFY_PLT) -r ebin
  45. .PHONY: all clean distclean depends build etap eunit check