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.

57 lines
1.2 KiB

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