3 Star 0 Fork 0

mirrors_rancher/helm-project-operator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 933 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dan Pock 提交于 2024-10-06 16:18 . Add ability to list make targets
TARGETS := $(shell ls scripts|grep -ve "^util-\|entry")
LOCAL_TARGETS := $(addprefix local-,$(TARGETS))
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-$$(uname -s)-$$(uname -m) > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
# Default behavior for targets without dapper
$(TARGETS):
@scripts/$@
# Behavior for targets prefixed with "local-" using dapper
$(LOCAL_TARGETS): local-%: .dapper
./.dapper $(@:local-%=%)
.DEFAULT_GOAL := default
.PHONY: $(TARGETS) $(LOCAL_TARGETS) list
list:
@LC_ALL=C $(MAKE) -pRrq -f $(firstword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$'
# IMPORTANT: The line above must be indented by (at least one)
# *actual TAB character* - *spaces* do *not* work.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_rancher/helm-project-operator.git
git@gitee.com:mirrors_rancher/helm-project-operator.git
mirrors_rancher
helm-project-operator
helm-project-operator
main

搜索帮助