summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLokesh Mandvekar <lsm5@fedoraproject.org>2020-06-22 09:58:21 -0400
committerLokesh Mandvekar <lsm5@fedoraproject.org>2020-06-22 09:59:30 -0400
commit78bd0e0a635470128a0452a67e242e4761723657 (patch)
treec8e70e2b234e1484279f8611ecf18d2a177ac3fd
parent4afdbcd6da849cbc072808d575d6b4ec90c5d9a6 (diff)
downloadpodman-78bd0e0a635470128a0452a67e242e4761723657.tar.gz
podman-78bd0e0a635470128a0452a67e242e4761723657.tar.bz2
podman-78bd0e0a635470128a0452a67e242e4761723657.zip
Makefile: allow customizable GO_BUILD
This will let me use a customizable GO_BUILD so that I can run build targets for deb packages Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 43e248233..12e68350e 100644
--- a/Makefile
+++ b/Makefile
@@ -38,10 +38,10 @@ PRE_COMMIT = $(shell command -v bin/venv/bin/pre-commit ~/.local/bin/pre-commit
SOURCES = $(shell find . -path './.*' -prune -o -name "*.go")
-GO_BUILD=$(GO) build
+GO_BUILD ?= $(GO) build
# Go module support: set `-mod=vendor` to use the vendored sources
ifeq ($(shell go help mod >/dev/null 2>&1 && echo true), true)
- GO_BUILD=GO111MODULE=on $(GO) build -mod=vendor
+ GO_BUILD ?= GO111MODULE=on $(GO) build -mod=vendor
endif
BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay