diff --git a/Makefile b/Makefile index b1670df..a60c391 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,10 @@ GOTOOL_RUN := cd $(GOTOOL_DIR) && go run . -port $(PORT) .PHONY: default proto_generate proto_generate_uart proto_generate_espnow \ gotool-build gotool-proto gotool-tidy gotool-test-units \ gotool-version gotool-clients gotool-unicast-test gotool-deadzone-get gotool-deadzone-set \ - gotool-test + gotool-test gotool-serve TEST_CONFIG ?= example-lab +SERVE_ADDR ?= :8080 TEST_SCENARIO ?= smoke default: @@ -62,4 +63,7 @@ gotool-test-units: gotool-test: $(GOTOOL) $(GOTOOL) -port $(PORT) test -config $(TEST_CONFIG) -scenario $(TEST_SCENARIO) +gotool-serve: $(GOTOOL) + $(GOTOOL) -port $(PORT) serve -addr $(SERVE_ADDR) + $(GOTOOL): gotool-build