Makefile: declare our targets as PHONY

As they are.
This commit is contained in:
Roman Khimov 2019-09-09 11:19:57 +03:00
parent 8de080f6ec
commit 90469399d7

View file

@ -7,6 +7,11 @@ REPO ?= "$(shell go list -m)"
VERSION ?= "$(shell git describe --tags 2>/dev/null | sed 's/^v//')" VERSION ?= "$(shell git describe --tags 2>/dev/null | sed 's/^v//')"
BUILD_FLAGS = "-X $(REPO)/config.Version=$(VERSION)" BUILD_FLAGS = "-X $(REPO)/config.Version=$(VERSION)"
# All of the targets are phony here because we don't really use make dependency
# tracking for files
.PHONY: build deps image check-version clean-cluster push-tag push-to-registry \
run run-cluster test vet lint fmt cover
build: deps build: deps
@echo "=> Building binary" @echo "=> Building binary"
@set -x \ @set -x \