Add Makefile target for goTool web dashboard.
gotool-serve runs serve with configurable SERVE_ADDR (default :8080). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c4696657a7
commit
caf1b8d0d8
6
Makefile
6
Makefile
@ -8,9 +8,10 @@ GOTOOL_RUN := cd $(GOTOOL_DIR) && go run . -port $(PORT)
|
|||||||
.PHONY: default proto_generate proto_generate_uart proto_generate_espnow \
|
.PHONY: default proto_generate proto_generate_uart proto_generate_espnow \
|
||||||
gotool-build gotool-proto gotool-tidy gotool-test-units \
|
gotool-build gotool-proto gotool-tidy gotool-test-units \
|
||||||
gotool-version gotool-clients gotool-unicast-test gotool-deadzone-get gotool-deadzone-set \
|
gotool-version gotool-clients gotool-unicast-test gotool-deadzone-get gotool-deadzone-set \
|
||||||
gotool-test
|
gotool-test gotool-serve
|
||||||
|
|
||||||
TEST_CONFIG ?= example-lab
|
TEST_CONFIG ?= example-lab
|
||||||
|
SERVE_ADDR ?= :8080
|
||||||
TEST_SCENARIO ?= smoke
|
TEST_SCENARIO ?= smoke
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -62,4 +63,7 @@ gotool-test-units:
|
|||||||
gotool-test: $(GOTOOL)
|
gotool-test: $(GOTOOL)
|
||||||
$(GOTOOL) -port $(PORT) test -config $(TEST_CONFIG) -scenario $(TEST_SCENARIO)
|
$(GOTOOL) -port $(PORT) test -config $(TEST_CONFIG) -scenario $(TEST_SCENARIO)
|
||||||
|
|
||||||
|
gotool-serve: $(GOTOOL)
|
||||||
|
$(GOTOOL) -port $(PORT) serve -addr $(SERVE_ADDR)
|
||||||
|
|
||||||
$(GOTOOL): gotool-build
|
$(GOTOOL): gotool-build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user