build: ensure 'make linux' puts the binary in the expected location (#12494)
Fixes regression from #10833 Fixes dev-docker and test-docker targets
This commit is contained in:
parent
06e2cb4821
commit
7b569127f6
|
@ -178,8 +178,8 @@ endif
|
||||||
|
|
||||||
# linux builds a linux binary independent of the source platform
|
# linux builds a linux binary independent of the source platform
|
||||||
linux:
|
linux:
|
||||||
mkdir -p bin
|
@mkdir -p ./pkg/bin/linux_amd64
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin -ldflags "$(GOLDFLAGS)" -tags "$(GOTAGS)"
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./pkg/bin/linux_amd64 -ldflags "$(GOLDFLAGS)" -tags "$(GOTAGS)"
|
||||||
|
|
||||||
# dist builds binaries for all platforms and packages them for distribution
|
# dist builds binaries for all platforms and packages them for distribution
|
||||||
dist:
|
dist:
|
||||||
|
|
Loading…
Reference in New Issue