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