Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 0b3c564

Browse files
Merge pull request #143 from docker/native_build
Add native build make target to simplify docker-ce-packaging
2 parents cafb06d + 3eaac3e commit 0b3c564

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ validate-go-mod: ## Validate go.mod and go.sum are up-to-date
8484
.PHONY: validate
8585
validate: validate-go-mod validate-headers ## Validate sources
8686

87+
.PHONY: native-build
88+
native-build:
89+
GO111MODULE=on make -f builder.Makefile build
90+
8791
.PHONY: help
8892
help: ## Show help
8993
@echo Please specify a build target. The choices are:

vars.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ BINARY_EXT=
1515
ifeq ($(GOOS),windows)
1616
BINARY_EXT=.exe
1717
endif
18-
PLATFORM_BINARY:=docker-scan_$(GOOS)_amd64$(BINARY_EXT)
18+
PLATFORM_BINARY?=docker-scan_$(GOOS)_amd64$(BINARY_EXT)
1919
BINARY=docker-scan$(BINARY_EXT)

0 commit comments

Comments
 (0)