1 Star 0 Fork 0

David/manifests

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
David 提交于 2023-08-08 18:48 . 增加描述文件,优化Makfefile文件
.PHONY: all sync clean list help
define NOP
@nop=
endef
PROJECT_DIR = project
REPO_DIR = .repo
REPO_URL = https://gitee.com/DAI_David/manifests.git
REPO_BARCH = master
ifdef OS
REPO_TOOL = tools/git-repo.exe
RM_TOOL = RM
else
REPO_TOOL = tools/git-repo
RM_TOOL = rm
endif
all:help
sync:
ifneq ($(wildcard ${PROJECT_DIR}),)
@${RM_TOOL} -rf ${PROJECT_DIR}
endif
$(info Repo sync project...)
@${REPO_TOOL} sync
clean:
ifneq ($(wildcard ${PROJECT_DIR}),)
@${RM_TOOL} -rf ${PROJECT_DIR}
endif
ifneq ($(wildcard ${REPO_DIR}),)
@${RM_TOOL} -rf ${REPO_DIR}
endif
$(info Clean repo project)
list:
$(info Support project list: $(subst .xml,,$(subst configs/,,$(wildcard configs/*.xml))))
${NOP}
%_config:configs/%_config.xml
$(info Repo init $< project...)
@${REPO_TOOL} init -u ${REPO_URL} -b ${REPO_BARCH} -m $<
help:
$(info Usage: make [target])
$(info Targets:)
$(info list List all repo project configuration)
$(info XXX_config Init the project named XXX_config, use "make list" to view support list.)
$(info sync Sync repo project.)
$(info clean Delete repo project.)
${NOP}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/DAI_David/manifests.git
git@gitee.com:DAI_David/manifests.git
DAI_David
manifests
manifests
master

搜索帮助