Skip to content
Snippets Groups Projects
Unverified Commit 7be3b65b authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Move main.go files to cmd subpackages

parent b9e53794
No related branches found
No related tags found
No related merge requests found
...@@ -107,14 +107,14 @@ build: $(GOX) ...@@ -107,14 +107,14 @@ build: $(GOX)
gox $(BUILD_PLATFORMS) \ gox $(BUILD_PLATFORMS) \
-ldflags "$(GO_LDFLAGS)" \ -ldflags "$(GO_LDFLAGS)" \
-output="out/binaries/$(NAME)-{{.OS}}-{{.Arch}}" \ -output="out/binaries/$(NAME)-{{.OS}}-{{.Arch}}" \
$(PKG) $(PKG)/cmd/gitlab-runner
build_simple: $(GOPATH_SETUP) build_simple: $(GOPATH_SETUP)
# Building $(NAME) in version $(VERSION) for current platform # Building $(NAME) in version $(VERSION) for current platform
go build \ go build \
-ldflags "$(GO_LDFLAGS)" \ -ldflags "$(GO_LDFLAGS)" \
-o "out/binaries/$(NAME)" \ -o "out/binaries/$(NAME)" \
$(PKG) $(PKG)/cmd/gitlab-runner
build_current: docker build_simple build_current: docker build_simple
...@@ -142,7 +142,7 @@ pull_images_for_tests: $(GOPATH_SETUP) ...@@ -142,7 +142,7 @@ pull_images_for_tests: $(GOPATH_SETUP)
@go run ./scripts/pull-images-for-tests/main.go @go run ./scripts/pull-images-for-tests/main.go
install: install:
go install --ldflags="$(GO_LDFLAGS)" $(PKG) go install --ldflags="$(GO_LDFLAGS)" $(PKG)/cmd/gitlab-runner
dockerfiles: dockerfiles:
make -C dockerfiles all make -C dockerfiles all
......
...@@ -11,7 +11,7 @@ GO_x86_64_ARCH = amd64 ...@@ -11,7 +11,7 @@ GO_x86_64_ARCH = amd64
GO_arm_ARCH = arm GO_arm_ARCH = arm
dockerfiles/build/binaries/gitlab-runner-helper.%: $(HELPER_GO_FILES) $(GOX) dockerfiles/build/binaries/gitlab-runner-helper.%: $(HELPER_GO_FILES) $(GOX)
gox -osarch=linux/$(GO_$*_ARCH) -ldflags "$(GO_LDFLAGS)" -output=$@ $(PKG)/apps/gitlab-runner-helper gox -osarch=linux/$(GO_$*_ARCH) -ldflags "$(GO_LDFLAGS)" -output=$@ $(PKG)/cmd/gitlab-runner-helper
out/helper-images/prebuilt-%.tar: dockerfiles/build/binaries/gitlab-runner-helper.% out/helper-images/prebuilt-%.tar: dockerfiles/build/binaries/gitlab-runner-helper.%
@mkdir -p $$(dirname $@_) @mkdir -p $$(dirname $@_)
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment