Makefile 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .PHONY: rel deps test plugins
  2. APP = emqttd
  3. BASE_DIR = $(shell pwd)
  4. REBAR = $(BASE_DIR)/rebar
  5. DIST = $(BASE_DIR)/rel/$(APP)
  6. all: compile
  7. # submods:
  8. # @git submodule update --init
  9. compile: deps
  10. @$(REBAR) compile
  11. deps:
  12. @$(REBAR) get-deps
  13. update-deps:
  14. @$(REBAR) update-deps
  15. xref:
  16. @$(REBAR) xref skip_deps=true
  17. clean:
  18. @$(REBAR) clean
  19. test:
  20. ERL_FLAGS="-config rel/files/emqttd.test.config" $(REBAR) -v skip_deps=true ct
  21. #$(REBAR) skip_deps=true eunit
  22. edoc:
  23. @$(REBAR) doc
  24. rel: compile
  25. @cd rel && $(REBAR) generate -f
  26. dist: rel
  27. PLT = $(BASE_DIR)/.emqttd_dialyzer.plt
  28. APPS = erts kernel stdlib sasl crypto ssl os_mon syntax_tools \
  29. public_key mnesia inets compiler
  30. check_plt: compile
  31. dialyzer --check_plt --plt $(PLT) --apps $(APPS) \
  32. deps/*/ebin ./ebin plugins/*/ebin
  33. build_plt: compile
  34. dialyzer --build_plt --output_plt $(PLT) --apps $(APPS) \
  35. deps/*/ebin ./ebin plugins/*/ebin
  36. dialyzer: compile
  37. dialyzer -Wno_return --plt $(PLT) deps/*/ebin ./ebin plugins/*/ebin