From 2c0a74fc5c2af5b0e5b51c6700f7cba415e23931 Mon Sep 17 00:00:00 2001 From: Rahil Bhimjiani Date: Mon, 6 Nov 2023 09:00:00 +0530 Subject: [PATCH] Makefile: allow to use custom GITCOMMIT & BUILDOPTS (#6384) ?= means If GITCOMMIT/BUILDOPTS is defined then use that otherwise fallback to default Signed-off-by: Rahil Bhimjiani --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 43d03e207..10fca3da1 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ # Makefile for building CoreDNS -GITCOMMIT:=$(shell git describe --dirty --always) +GITCOMMIT?=$(shell git describe --dirty --always) BINARY:=coredns SYSTEM:= CHECKS:=check -BUILDOPTS:=-v +BUILDOPTS?=-v GOPATH?=$(HOME)/go MAKEPWD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) CGO_ENABLED?=0