Skip to content

Commit 1e3a157

Browse files
committed
Ensure bin directory exists
1 parent e600505 commit 1e3a157

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
@@ -101,10 +101,13 @@ make_necessary_dirs:
101101

102102
compile: bin/gitlab-shell bin/gitlab-sshd
103103

104-
bin/gitlab-shell: $(GO_SOURCES)
104+
bin:
105+
mkdir -p bin
106+
107+
bin/gitlab-shell: bin $(GO_SOURCES)
105108
go build $(GOBUILD_FLAGS) -o $(CURDIR)/bin ./cmd/...
106109

107-
bin/gitlab-sshd: $(GO_SOURCES)
110+
bin/gitlab-sshd: bin $(GO_SOURCES)
108111
go build $(GOBUILD_FLAGS) -o $(CURDIR)/bin/gitlab-sshd ./cmd/gitlab-sshd
109112

110113
check:

0 commit comments

Comments
 (0)