Skip to content

Commit 3633cd5

Browse files
committed
Revert "Remove bin/podman.cross Make target"
This reverts commit c45b27f. 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 <[email protected]>
1 parent 6d0b28a commit 3633cd5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,18 @@ podman-testing: bin/podman-testing
481481
generate-bindings: .install.golangci-lint
482482
$(GOCMD) generate ./pkg/bindings/... ;
483483

484+
# DO NOT USE: use local-cross instead
485+
bin/podman.cross.%:
486+
TARGET="$*"; \
487+
GOOS="$${TARGET%%.*}"; \
488+
GOARCH="$${TARGET##*.}"; \
489+
CGO_ENABLED=0 \
490+
$(GO) build \
491+
$(BUILDFLAGS) \
492+
$(GO_LDFLAGS) '$(LDFLAGS_PODMAN)' \
493+
-tags '$(BUILDTAGS_CROSS)' \
494+
-o "$@" ./cmd/podman
495+
484496
.PHONY: local-cross
485497
local-cross: $(CROSS_BUILD_TARGETS) ## Cross compile podman binary for multiple architectures
486498

0 commit comments

Comments
 (0)