代码拉取完成,页面将自动刷新
.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}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。