Makefile 707 B

1234567891011121314151617181920212223242526272829303132333435
  1. ## shallow clone for speed
  2. REBAR_GIT_CLONE_OPTIONS += --depth 1
  3. export REBAR_GIT_CLONE_OPTIONS
  4. REBAR = rebar3
  5. all: compile
  6. compile:
  7. $(REBAR) compile
  8. clean: distclean
  9. ct: compile
  10. $(REBAR) as test ct -v
  11. eunit: compile
  12. $(REBAR) as test eunit
  13. xref:
  14. $(REBAR) xref
  15. distclean:
  16. @rm -rf _build
  17. @rm -f data/app.*.config data/vm.*.args rebar.lock
  18. CUTTLEFISH_SCRIPT = _build/default/lib/cuttlefish/cuttlefish
  19. $(CUTTLEFISH_SCRIPT):
  20. @${REBAR} get-deps
  21. @if [ ! -f cuttlefish ]; then make -C _build/default/lib/cuttlefish; fi
  22. app.config: $(CUTTLEFISH_SCRIPT) etc/emqx_mini_plugin.conf
  23. $(verbose) $(CUTTLEFISH_SCRIPT) -l info -e etc/ -c etc/emqx_mini_plugin.conf -i priv/emqx_mini_plugin.schema -d data