feat: make multiarch

pull/455/head
Xinwei Xiong(cubxxw-openim) 2 years ago
parent 32e60fd250
commit c6595bee54

@ -60,6 +60,11 @@ export USAGE_OPTIONS
build:
@$(MAKE) go.build
## multiarch: Build binaries for multiple platforms. See option PLATFORMS.
.PHONY: build-multiarch
build-multiarch:
@$(MAKE) go.build.multiarch
## tidy: tidy go.mod
.PHONY: tidy
tidy:

@ -150,8 +150,8 @@ define MAKEFILE_EXAMPLE
# make linux.arm64 imctl is compiled on arm64 platform.
# make verify-copyright Verify the license headers for all files.
# make install-deepcopy-gen Install deepcopy-gen tools if the license is missing.
# make build BINS=imctl V=1 DEBUG=1 Build debug binaries for only imctl.
# make multiarch PLATFORMS="linux_arm64 linux_amd64" V=1 Build binaries for both platforms.
# make build BINS=imctl V=1 DEBUG=1 Build debug binaries for only imctl.
# make multiarch PLATFORMS="linux_arm64 linux_amd64" V=1 Build binaries for both platforms.
endef
export MAKEFILE_EXAMPLE

Loading…
Cancel
Save