Skip to content

Commit 874ecd5

Browse files
ashmckenziestanhu
andcommitted
Merge branch 'sh-add-gitlab-sshd-makefile' into 'main'
Add bin/gitlab-sshd as an explicit Makefile target See merge request https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/714 Merged-by: Ash McKenzie <[email protected]> Approved-by: Ash McKenzie <[email protected]> Co-authored-by: Stan Hu <[email protected]>
2 parents 336c4a5 + c7c52ac commit 874ecd5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GOBUILD_FLAGS := -ldflags "-X main.Version=$(VERSION_STRING) -X main.BuildTime=$
2424

2525
PREFIX ?= /usr/local
2626

27-
build: bin/gitlab-shell
27+
build: compile
2828

2929
validate: verify test
3030

@@ -58,10 +58,13 @@ setup: _script_install bin/gitlab-shell
5858
_script_install:
5959
bin/install
6060

61-
compile: bin/gitlab-shell
61+
compile: bin/gitlab-shell bin/gitlab-sshd
6262
bin/gitlab-shell: $(GO_SOURCES)
6363
GOBIN="$(CURDIR)/bin" go install $(GOBUILD_FLAGS) ./cmd/...
6464

65+
bin/gitlab-sshd: $(GO_SOURCES)
66+
GOBIN="$(CURDIR)/bin" go install $(GOBUILD_FLAGS) ./cmd/gitlab-sshd
67+
6568
check:
6669
bin/check
6770

0 commit comments

Comments
 (0)