diff --git a/Makefile b/Makefile index 2e5877c..26cae7f 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ EXE := $(shell go env GOEXE) OCGO_BIN := bin/ocgo$(EXE) GOBIN := $(shell go env GOBIN) GOPATH := $(shell go env GOPATH) -INSTALL_DIR := $(if $(GOBIN),$(GOBIN),$(GOPATH)/bin) +INSTALL_DIR := $(HOME)/.local/bin build: go build -ldflags "-X main.version=$(VERSION)" -o $(OCGO_BIN) ./cmd/ocgo