From 8202fa2fdebcdf44200a988e2429c66652ca309d Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Thu, 18 Jul 2019 12:11:05 +0300 Subject: [PATCH] Build: change definition of the vars in makefile (#18151) Prompted by the @slim-bean talk (thanks!). With that definition `GO_FILES` var can be dynamically changed, that will be very helpful in grafana enterprise repo --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4c161b37194..e0f1eec84cc 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,8 @@ .PHONY: all deps-go deps-js deps build-go build-server build-cli build-js build build-docker-dev build-docker-full lint-go gosec revive golangci-lint go-vet test-go test-js test run clean devenv devenv-down revive-alerting -GO := GO111MODULE=on go -GO_FILES := ./pkg/... +GO = GO111MODULE=on go +GO_FILES ?= ./pkg/... all: deps build