mirror of
https://github.com/containers/podman.git
synced 2025-10-19 04:03:23 +08:00
Revert "Remove bin/podman.cross Make target"
This reverts commit c45b27ffb094cc09e88bf9dd9dcebfacc80e574f. This commit was just wrong, local-cross depends on this target as it calls a target like "bin/podman.cross.linux.amd64". Without this it is just broken as there is no matching target. $ make bin/podman.cross.linux.amd64 make: *** No rule to make target 'bin/podman.cross.linux.amd64'. Stop. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
12
Makefile
12
Makefile
@ -481,6 +481,18 @@ podman-testing: bin/podman-testing
|
|||||||
generate-bindings: .install.golangci-lint
|
generate-bindings: .install.golangci-lint
|
||||||
$(GOCMD) generate ./pkg/bindings/... ;
|
$(GOCMD) generate ./pkg/bindings/... ;
|
||||||
|
|
||||||
|
# DO NOT USE: use local-cross instead
|
||||||
|
bin/podman.cross.%:
|
||||||
|
TARGET="$*"; \
|
||||||
|
GOOS="$${TARGET%%.*}"; \
|
||||||
|
GOARCH="$${TARGET##*.}"; \
|
||||||
|
CGO_ENABLED=0 \
|
||||||
|
$(GO) build \
|
||||||
|
$(BUILDFLAGS) \
|
||||||
|
$(GO_LDFLAGS) '$(LDFLAGS_PODMAN)' \
|
||||||
|
-tags '$(BUILDTAGS_CROSS)' \
|
||||||
|
-o "$@" ./cmd/podman
|
||||||
|
|
||||||
.PHONY: local-cross
|
.PHONY: local-cross
|
||||||
local-cross: $(CROSS_BUILD_TARGETS) ## Cross compile podman binary for multiple architectures
|
local-cross: $(CROSS_BUILD_TARGETS) ## Cross compile podman binary for multiple architectures
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user