5 Star 14 Fork 5

隐语SecretFlow/secretpad

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
雨土 提交于 2024-05-21 17:33 . repo-sync-2024-05-21T17:31:54+0800
# Setting SHELL to bash allows bash commands to be executed by recipes.
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec
.PHONY: all
all: build
##@ General
# The help target prints out all targets with their descriptions organized
# beneath their categories. The categories are represented by '##@' and the
# target descriptions by '##'. The awk commands is responsible for reading the
# entire set of makefiles included in this invocation, looking for lines of the
# file as xyz: ## something, and then pretty-format the target and help. Then,
# if there's a line with ##@ something, that gets pretty-printed as a category.
# More info on the usage of ANSI control characters for terminal formatting:
# https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters
# More info on the awk command:
# http://linuxcommand.org/lc3_adv_awk.php
.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-16s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
##@ Development
.PHONY: test
test: ## Run tests.
mvn clean test
.PHONY: build
build: ## Build SecretPad binary whether to integrate frontend.
./scripts/build/build.sh true
.PHONY: image
image: build ## Build docker image with the manager.
./scripts/build/build_image.sh
.PHONY: docs
docs: ## Build docs.
cd docs && pip install -r requirements.txt && make html
.PHONY: pack
platform="linux/amd64"
pack: ## Build pack all in one with tar.gz.
./scripts/pack/pack_allinone.sh ${platform}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/secretflow/secretpad.git
git@gitee.com:secretflow/secretpad.git
secretflow
secretpad
secretpad
main

搜索帮助