Makefile 799 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ## shallow clone for speed
  2. BUILD_WITHOUT_QUIC ?= true
  3. export BUILD_WITHOUT_QUIC
  4. BUILD_WITHOUT_ROCKSDB ?= true
  5. export BUILD_WITHOUT_ROCKSDB
  6. REBAR ?= $(or $(shell which rebar3 2>/dev/null),$(CURDIR)/rebar3)
  7. REBAR_VERSION ?= 3.19.0-emqx-1
  8. .PHONY: all
  9. all: compile
  10. .PHONY: get-rebar3
  11. get-rebar3:
  12. @$(CURDIR)/get-rebar3 $(REBAR_VERSION)
  13. $(REBAR):
  14. $(MAKE) get-rebar3
  15. .PHONY: compile
  16. compile: $(REBAR)
  17. $(REBAR) compile
  18. .PHONY: ct
  19. ct: $(REBAR)
  20. $(REBAR) as test ct -v
  21. .PHONY: eunit
  22. eunit: $(REBAR)
  23. $(REBAR) as test eunit
  24. .PHONY: xref
  25. xref: $(REBAR)
  26. $(REBAR) xref
  27. .PHONY: cover
  28. cover: $(REBAR)
  29. $(REBAR) cover
  30. .PHONY: clean
  31. clean: distclean
  32. .PHONY: distclean
  33. distclean:
  34. @rm -rf _build
  35. @rm -f data/app.*.config data/vm.*.args rebar.lock
  36. .PHONY: rel
  37. rel: $(REBAR)
  38. $(REBAR) emqx_plugrel tar