2018-04-19 12:07:10 +03:00
# Copyright 2018 The Prometheus Authors
2012-11-26 20:11:34 +01:00
# 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
2013-02-07 11:38:01 +01:00
#
2012-11-26 20:11:34 +01:00
# http://www.apache.org/licenses/LICENSE-2.0
2013-02-07 11:38:01 +01:00
#
2012-11-26 20:11:34 +01:00
# 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.
2018-04-19 12:07:10 +03:00
i n c l u d e M a k e f i l e . c o m m o n
2015-11-11 15:44:15 +01:00
2017-08-28 13:52:58 +02:00
STATICCHECK_IGNORE = \
2017-11-04 17:40:11 +01:00
github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:SA1019 \
2017-08-28 13:52:58 +02:00
github.com/prometheus/prometheus/discovery/kubernetes/node.go:SA1019 \
github.com/prometheus/prometheus/documentation/examples/remote_storage/remote_storage_adapter/main.go:SA1019 \
2017-10-09 17:34:48 +01:00
github.com/prometheus/prometheus/pkg/textparse/lex.l.go:SA4006 \
github.com/prometheus/prometheus/pkg/pool/pool.go:SA6002 \
2018-03-21 09:16:16 +01:00
github.com/prometheus/prometheus/promql/engine.go:SA6002
2015-11-11 15:44:15 +01:00
2018-04-19 12:07:10 +03:00
DOCKER_IMAGE_NAME ?= prometheus
2015-10-10 00:49:08 +02:00
2018-04-19 12:07:10 +03:00
i f d e f D E B U G
bindata_flags = -debug
e n d i f
2013-04-14 06:59:55 +02:00
2015-09-17 17:53:15 +02:00
assets :
2015-09-18 17:03:26 +02:00
@echo ">> writing assets"
2015-10-23 02:51:29 -04:00
@$( GO) get -u github.com/jteeuwen/go-bindata/...
2015-11-11 15:44:15 +01:00
@go-bindata $( bindata_flags) -pkg ui -o web/ui/bindata.go -ignore '(.*\.map|bootstrap\.js|bootstrap-theme\.css|bootstrap\.css)' web/ui/templates/... web/ui/static/...
2018-04-19 12:07:10 +03:00
@$( GO) fmt ./web/ui