aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Rahil Bhimjiani <me@rahil.website> 2023-11-06 09:00:00 +0530
committerGravatar GitHub <noreply@github.com> 2023-11-05 19:30:00 -0800
commit2c0a74fc5c2af5b0e5b51c6700f7cba415e23931 (patch)
tree3583b2b5159c8f686bdc18ea99ea9fa08feb55a0
parent282b2da5fa2e76250d86ce16b0169878b9ff5ed4 (diff)
downloadcoredns-2c0a74fc5c2af5b0e5b51c6700f7cba415e23931.tar.gz
coredns-2c0a74fc5c2af5b0e5b51c6700f7cba415e23931.tar.zst
coredns-2c0a74fc5c2af5b0e5b51c6700f7cba415e23931.zip
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 <rahil3108@gmail.com>
-rw-r--r--Makefile4
1 files 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