diff options
author | Kacper Kołodziej <kacper@kolodziej.it> | 2019-07-20 11:29:31 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-23 10:41:15 -0400 |
commit | 6c0f228451c171f4901fa214dd8252d2b22bceaa (patch) | |
tree | 8bc467b9ff9265d439e56cedb1a27d5805efc9fe /Makefile | |
parent | ec0e0f9d751f8b387a7b10b65b0a6ab35d50c59b (diff) | |
download | aerc-6c0f228451c171f4901fa214dd8252d2b22bceaa.zip |
Makefile: Use GO variable to specify compiler path
It is useful when somebody has different Go versions across one system
and first go in $PATH points to version older than 1.12 (common in
stable distributions).
Signed-off-by: Kacper Kołodziej <kacper@kolodziej.it>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,13 +10,14 @@ _INSTDIR=$(DESTDIR)$(PREFIX) BINDIR?=$(_INSTDIR)/bin SHAREDIR?=$(_INSTDIR)/share/aerc MANDIR?=$(_INSTDIR)/share/man +GO?=go GOFLAGS?= GOSRC!=find . -name '*.go' GOSRC+=go.mod go.sum aerc: $(GOSRC) - go build $(GOFLAGS) \ + $(GO) build $(GOFLAGS) \ -ldflags "-X main.Prefix=$(PREFIX) \ -X main.ShareDir=$(SHAREDIR) \ -X main.Version=$(VERSION)" \ |