소스 검색

chore(Makefile): Add make run and make quickrun

Zaiming Shi 4 년 전
부모
커밋
f363bea960
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      Makefile

+ 7 - 0
Makefile

@@ -131,4 +131,11 @@ $1: $(subst -pkg,,$1)-zip $1-tar
 endef
 endef
 $(foreach pt,$(PKG_PROFILES),$(eval $(call gen-pkg-target,$(pt))))
 $(foreach pt,$(PKG_PROFILES),$(eval $(call gen-pkg-target,$(pt))))
 
 
+.PHONY: run
+run: $(PROFILE) quickrun
+
+.PHONY: quickrun
+quickrun:
+	./_build/$(PROFILE)/rel/emqx/bin/emqx console
+
 include docker.mk
 include docker.mk