Skip to content

Commit 44489aa

Browse files
authored
Merge pull request #207 from rst0git/make-fix
make: allow build variables to be overridden
2 parents 341f335 + 9b554c8 commit 44489aa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
SHELL = /bin/bash
1+
SHELL ?= /bin/bash
22
PREFIX ?= $(DESTDIR)/usr/local
33
BINDIR ?= $(PREFIX)/bin
44
GO ?= go
5-
GOPATH := $(shell $(GO) env GOPATH)
6-
GOBIN := $(shell $(GO) env GOBIN)
5+
GOPATH ?= $(shell $(GO) env GOPATH)
6+
GOBIN ?= $(shell $(GO) env GOBIN)
77
GO_SRC = $(shell find . -name \*.go)
8-
GO_BUILD = $(GO) build
8+
GO_BUILD ?= $(GO) build
99
NAME = checkpointctl
1010

1111
BASHINSTALLDIR=${PREFIX}/share/bash-completion/completions

0 commit comments

Comments
 (0)