feat: make multiarch

This commit is contained in:
Xinwei Xiong(cubxxw-openim) 2023-06-10 09:07:20 +08:00
parent 32e60fd250
commit c6595bee54
2 changed files with 7 additions and 2 deletions

View File

@ -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:

View File

@ -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