Make client generation optional via ENV variable
parent
78744e4b0e
commit
547a147d6b
1
Makefile
1
Makefile
|
@ -40,7 +40,6 @@ UISOURCES := $(shell find ui -type f -not \( -path ui/build/\* -o -path ui/node_
|
|||
# All precanned dashboards
|
||||
PRECANNED := $(shell find chronograf/canned -name '*.json')
|
||||
|
||||
|
||||
# List of binary cmds to build
|
||||
CMDS := \
|
||||
bin/$(GOOS)/influx \
|
||||
|
|
|
@ -19,7 +19,9 @@ clean: $(SUBDIRS)
|
|||
|
||||
GO_RUN := env GO111MODULE=on go run
|
||||
|
||||
ifndef SKIP_CLIENT
|
||||
../ui/src/api/api.ts: $(SOURCES)
|
||||
openapi-generator generate -g typescript-axios -o ../ui/src/api -i cur_swagger.yml
|
||||
endif
|
||||
|
||||
.PHONY: all clean $(SUBDIRS)
|
||||
|
|
Loading…
Reference in New Issue