From 6ec7a330461202d6bcc1dc86d775fe09584a1713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 11 Mar 2023 19:18:12 +0800 Subject: [PATCH] Fix make install --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5873e232..b2d226c4 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ TAGS_TEST ?= with_gvisor,with_quic,with_wireguard,with_grpc,with_ech,with_utls,w VERSION=$(shell go run ./cmd/internal/read_tag) PARAMS = -v -trimpath -tags "$(TAGS)" -ldflags "-X \"github.com/sagernet/sing-box/constant.Version=$(VERSION)\" -s -w -buildid=" MAIN = ./cmd/sing-box +PREFIX ?= $(shell go env GOPATH) .PHONY: test release @@ -12,7 +13,7 @@ build: go build $(PARAMS) $(MAIN) install: - go install $(PARAMS) $(MAIN) + go build -o $(PREFIX)/bin/$(NAME) $(PARAMS) $(MAIN) fmt: @gofumpt -l -w .