您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

45 行
1.2 KiB

  1. test: compile
  2. ./rebar eunit skip_deps=true
  3. docs:
  4. ./rebar doc skip_deps=true
  5. PLT ?= $(HOME)/.riak_combo_dialyzer_plt
  6. LOCAL_PLT = .local_dialyzer_plt
  7. DIALYZER_FLAGS ?= -Wunmatched_returns
  8. ${PLT}: compile
  9. ifneq (,$(wildcard $(PLT)))
  10. dialyzer --check_plt --plt $(PLT) --apps $(DIALYZER_APPS) && \
  11. dialyzer --add_to_plt --plt $(PLT) --output_plt $(PLT) --apps $(DIALYZER_APPS) ; test $$? -ne 1
  12. else
  13. dialyzer --build_plt --output_plt $(PLT) --apps $(DIALYZER_APPS); test $$? -ne 1
  14. endif
  15. ${LOCAL_PLT}: compile
  16. ifneq (,$(wildcard deps/*))
  17. ifneq (,$(wildcard $(LOCAL_PLT)))
  18. dialyzer --check_plt --plt $(LOCAL_PLT) deps/*/ebin && \
  19. dialyzer --add_to_plt --plt $(LOCAL_PLT) --output_plt $(LOCAL_PLT) deps/*/ebin ; test $$? -ne 1
  20. else
  21. dialyzer --build_plt --output_plt $(LOCAL_PLT) deps/*/ebin ; test $$? -ne 1
  22. endif
  23. endif
  24. dialyzer: ${PLT} ${LOCAL_PLT}
  25. @echo "==> $(shell basename $(shell pwd)) (dialyzer)"
  26. @if [ -f $(LOCAL_PLT) ]; then \
  27. dialyzer $(DIALYZER_FLAGS) --plts $(PLT) $(LOCAL_PLT) -c ebin; \
  28. else \
  29. dialyzer $(DIALYZER_FLAGS) --plts $(PLT) -c ebin; \
  30. fi
  31. cleanplt:
  32. @echo
  33. @echo "Are you sure? It takes several minutes to re-build."
  34. @echo Deleting $(PLT) and $(LOCAL_PLT) in 5 seconds.
  35. @echo
  36. sleep 5
  37. rm $(PLT)
  38. rm $(LOCAL_PLT)