1 Star 0 Fork 0

walrus-catalog-test/terraform-azure-redis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
Xueying Wang 提交于 1年前 . Initial commit
SHELL := /bin/bash
# Borrowed from https://stackoverflow.com/questions/18136918/how-to-get-current-relative-directory-of-your-makefile
curr_dir := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
# Borrowed from https://stackoverflow.com/questions/2214575/passing-arguments-to-make-run
rest_args := $(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS))
$(eval $(rest_args):;@:)
examples := $(shell ls $(curr_dir)/examples | xargs -I{} echo -n "examples/{}")
modules := $(shell ls $(curr_dir)/modules | xargs -I{} echo -n "modules/{}")
targets := $(shell ls $(curr_dir)/hack | grep '.sh' | sed 's/\.sh//g')
$(targets):
@$(curr_dir)/hack/$@.sh $(rest_args)
help:
#
# Usage:
#
# * [dev] `make generate`, generate README file.
# - `make generate examples/hello-world` only generate docs and schema under examples/hello-world directory.
# - `make generate docs examples/hello-world` only generate README file under examples/hello-world directory.
# - `make generate schema examples/hello-world` only generate schema.yaml under examples/hello-world directory.
#
# * [dev] `make lint`, check style and security.
# - `LINT_DIRTY=true make lint` verify whether the code tree is dirty.
# - `make lint examples/hello-world` only verify the code under examples/hello-world directory.
#
# * [dev] `make test`, execute unit testing.
# - `make test examples/hello-world` only test the code under examples/hello-world directory.
#
# * [ci] `make ci`, execute `make generate`, `make lint` and `make test`.
#
@echo
.DEFAULT_GOAL := ci
.PHONY: $(targets) examples $(examples) modules $(modules) tests docs schema
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/walrus-catalog-test/terraform-azure-redis.git
git@gitee.com:walrus-catalog-test/terraform-azure-redis.git
walrus-catalog-test
terraform-azure-redis
terraform-azure-redis
main

搜索帮助