Skip to content

Commit 90418d8

Browse files
committed
Use go build so we can use -o
1 parent 7416fe8 commit 90418d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,12 @@ _script_install:
100100
bin/install
101101

102102
compile: bin/gitlab-shell bin/gitlab-sshd
103+
103104
bin/gitlab-shell: $(GO_SOURCES)
104-
GOBIN="$(CURDIR)/bin" go install $(GOBUILD_FLAGS) ./cmd/...
105+
go build $(GOBUILD_FLAGS) -o $(CURDIR)/bin ./cmd/...
105106

106107
bin/gitlab-sshd: $(GO_SOURCES)
107-
GOBIN="$(CURDIR)/bin" go install $(GOBUILD_FLAGS) ./cmd/gitlab-sshd
108+
go build $(GOBUILD_FLAGS) -o $(CURDIR)/bin/gitlab-sshd ./cmd/gitlab-sshd
108109

109110
check:
110111
bin/check

0 commit comments

Comments
 (0)