feat(makefile): add help and helo-all

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
pull/382/head
Xinwei Xiong(cubxxw) 2 years ago
parent 9d849adda8
commit 045dbf55b7

@ -31,18 +31,18 @@ endef
# Here are some examples of builds
define MAKEFILE_EXAMPLE
# make build BINS=sealer Only a single sealer binary is built.
# make build BINS=imctl Only a single imctl binary is built.
# make -j $(nproc) all Run tidy gen add-copyright format lint cover build concurrently.
# make gen Generate all necessary files.
# make linux.arm64 sealer is compiled on arm64 platform.
# 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=sealer V=1 DEBUG=1 Build debug binaries for only sealer.
# make build BINS=imctl V=1 DEBUG=1 Build debug binaries for only imctl.
# make build.multiarch PLATFORMS="linux_arm64 linux_amd64" V=1 Build binaries for both platforms.
endef
export MAKEFILE_EXAMPLE
# Define all help functions @printf "\n\033[1mCurrent sealer version information: $(shell sealer version):\033[0m\n\n"
# Define all help functions @printf "\n\033[1mCurrent imctl version information: $(shell imctl version):\033[0m\n\n"
define makeallhelp
@printf "\n\033[1mMake example:\033[0m\n\n"
$(call MAKEFILE_EXAMPLE)

Loading…
Cancel
Save