aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 14976ed..bc043b3 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
## SPDX-License-Identifier: GPL-3.0-or-later
VERSION:=$(shell git describe --tags)
+ENV_GOBIN:=$(shell go env GOBIN)
LDFLAGS:=-ldflags "-s -w -X 'git.sr.ht/~shulhan/ciigo.Version=$(VERSION)'"
DIR_BUILD:=_bin
@@ -21,7 +22,7 @@ test:
.PHONY: install
install: build
- mv _bin/ciigo $(GOBIN)
+ mv _bin/ciigo $(ENV_GOBIN)
.PHONY: run-example
run-example: