diff options
| author | Shulhan <ms@kilabit.info> | 2025-02-01 09:48:18 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-02-01 09:48:18 +0700 |
| commit | 4a4ff7a416cba297ef1172bcdf44ed69b9178033 (patch) | |
| tree | f1283570c495f6bb9efd7186b6edb8bf27dc9f39 | |
| parent | 3453ab4a27367677de29e98d190da7f752aed5ed (diff) | |
| download | ciigo-4a4ff7a416cba297ef1172bcdf44ed69b9178033.tar.xz | |
make: derive GOBIN using "go env GOBIN"
The environment variable GOBIN may not set by user explicitly.
| -rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |
