2018-08-24 13:10:16 +03:00
|
|
|
# Copyright 2018 The Prometheus Authors
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2023-06-13 16:54:49 +03:00
|
|
|
include .bingo/Variables.mk
|
2018-08-24 13:10:16 +03:00
|
|
|
include Makefile.common
|
|
|
|
|
|
|
|
.PHONY: test
|
2019-03-13 11:14:47 +03:00
|
|
|
test: deps common-test
|
2018-08-28 16:13:08 +03:00
|
|
|
|
|
|
|
.PHONY: test-short
|
2019-03-13 11:14:47 +03:00
|
|
|
test-short: deps common-test-short
|
2022-08-05 16:48:33 +03:00
|
|
|
|
|
|
|
.PHONY: generate-go-collector-test-files
|
2023-08-11 13:27:52 +03:00
|
|
|
VERSIONS := 1.19 1.20 1.21
|
2022-08-05 16:48:33 +03:00
|
|
|
generate-go-collector-test-files:
|
|
|
|
for GO_VERSION in $(VERSIONS); do \
|
|
|
|
docker run --rm -v $(PWD):/workspace -w /workspace golang:$$GO_VERSION go run prometheus/gen_go_collector_metrics_set.go; \
|
|
|
|
mv -f go_collector_metrics* prometheus; \
|
|
|
|
done
|
2023-06-13 16:54:49 +03:00
|
|
|
|
|
|
|
.PHONY: fmt
|
|
|
|
fmt: common-format
|
|
|
|
$(GOIMPORTS) -local github.com/prometheus/client_golang -w .
|