mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-21 20:32:32 +08:00
feat: make multiarch
This commit is contained in:
parent
32e60fd250
commit
c6595bee54
5
Makefile
5
Makefile
@ -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…
x
Reference in New Issue
Block a user