From 1a17c2ba1f1c022995adad33512c089e7fb3c5cc Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 15 Oct 2019 14:37:42 -0700 Subject: [PATCH] Makefile: use go build to replace go install --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4690cc01b..73dcadfff 100644 --- a/Makefile +++ b/Makefile @@ -33,16 +33,14 @@ govet: $(GOVET) models pkg routes build: $(GENERATED) - go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)' - cp '$(GOPATH)/bin/gogs' . + go build $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)' -o gogs build-dev: $(GENERATED) govet - go install $(BUILD_FLAGS) -tags '$(TAGS)' + go build $(BUILD_FLAGS) -tags '$(TAGS)' -o gogs cp '$(GOPATH)/bin/gogs' . build-dev-race: $(GENERATED) govet - go install $(BUILD_FLAGS) -race -tags '$(TAGS)' - cp '$(GOPATH)/bin/gogs' . + go build $(BUILD_FLAGS) -race -tags '$(TAGS)' -o gogs pack: rm -rf $(RELEASE_GOGS)