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.

52 lines
1023 B

14 years ago
14 years ago
  1. .PHONY: rel stagedevrel deps test
  2. all: deps compile
  3. compile:
  4. ./rebar compile
  5. deps:
  6. ./rebar get-deps
  7. clean:
  8. ./rebar clean
  9. distclean: clean
  10. ./rebar delete-deps
  11. test:
  12. ./rebar compile eunit
  13. ##
  14. ## Doc targets
  15. ##
  16. docs:
  17. ./rebar doc
  18. APPS = kernel stdlib sasl erts ssl tools os_mon runtime_tools crypto inets \
  19. xmerl webtool snmp public_key mnesia eunit syntax_tools compiler
  20. COMBO_PLT = $(HOME)/.riak_combo_dialyzer_plt
  21. check_plt: compile
  22. dialyzer --check_plt --plt $(COMBO_PLT) --apps $(APPS)
  23. build_plt: compile
  24. dialyzer --build_plt --output_plt $(COMBO_PLT) --apps $(APPS)
  25. dialyzer: compile
  26. @echo
  27. @echo Use "'make check_plt'" to check PLT prior to using this target.
  28. @echo Use "'make build_plt'" to build PLT prior to using this target.
  29. @echo
  30. @sleep 1
  31. dialyzer -Wno_return --plt $(COMBO_PLT) ebin | \
  32. fgrep -v -f ./dialyzer.ignore-warnings
  33. cleanplt:
  34. @echo
  35. @echo "Are you sure? It takes about 1/2 hour to re-build."
  36. @echo Deleting $(COMBO_PLT) in 5 seconds.
  37. @echo
  38. sleep 5
  39. rm $(COMBO_PLT)