mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Make all in api generator tooling now actually makes all (#88793)
* Make all now actually makes all * Clean depends on clean-go
This commit is contained in:
parent
80f54778f3
commit
820ee6e9db
@ -60,7 +60,11 @@ fix:
|
|||||||
sed $(SED_INPLACE) -e 's/apimodels\.\[\]PostableApiReceiver/apimodels.TestReceiversConfigParams/' $(GENERATED_GO_MATCHERS)
|
sed $(SED_INPLACE) -e 's/apimodels\.\[\]PostableApiReceiver/apimodels.TestReceiversConfigParams/' $(GENERATED_GO_MATCHERS)
|
||||||
goimports -w -v $(GENERATED_GO_MATCHERS)
|
goimports -w -v $(GENERATED_GO_MATCHERS)
|
||||||
|
|
||||||
clean:
|
clean: clean-go
|
||||||
|
rm spec.json
|
||||||
|
rm spec-stable.json
|
||||||
|
|
||||||
|
clean-go:
|
||||||
rm -rf ./go
|
rm -rf ./go
|
||||||
|
|
||||||
serve: post.json
|
serve: post.json
|
||||||
@ -69,6 +73,6 @@ serve: post.json
|
|||||||
serve-stable: api.json
|
serve-stable: api.json
|
||||||
docker run --rm -p 80:8080 -v $$(pwd):/tmp -e SWAGGER_FILE=/tmp/$(<) swaggerapi/swagger-editor
|
docker run --rm -p 80:8080 -v $$(pwd):/tmp -e SWAGGER_FILE=/tmp/$(<) swaggerapi/swagger-editor
|
||||||
|
|
||||||
gen: swagger-codegen-api fix copy-files clean
|
gen: swagger-codegen-api fix copy-files clean-go
|
||||||
|
|
||||||
all: post.json api.json gen
|
all: clean spec.json spec-stable.json post.json api.json gen
|
||||||
|
Loading…
Reference in New Issue
Block a user