9 Star 30 Fork 3

iresty / lua-resty-etcd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 957 Bytes
一键复制 编辑 原始数据 按行查看 历史
Shuyang Wu 提交于 2020-09-16 22:07 . doc: add doc for watchcancel (#82)
PREFIX ?= /usr/local/openresty
LUA_LIB_DIR ?= $(PREFIX)/lualib/$(LUA_VERSION)
INSTALL ?= install
### install: Install the library to runtime
.PHONY: install
install:
$(INSTALL) lib/resty/*.lua $(LUA_LIB_DIR)/resty/
### dev: Create a development ENV
.PHONY: dev
dev:
luarocks install rockspec/lua-resty-etcd-master-0.1-0.rockspec --only-deps --local
### help: Show Makefile rules
.PHONY: help
help:
@echo Makefile rules:
@echo
@grep -E '^### [-A-Za-z0-9_]+:' Makefile | sed 's/###/ /'
### lint: Lint Lua source code
.PHONY: lint
lint: utils
chmod a+x utils/check-lua-code-style.sh
./utils/check-lua-code-style.sh
### utils: Installation tools
.PHONY: utils
utils:
ifeq ("$(wildcard utils/lj-releng)", "")
wget -O utils/lj-releng https://raw.githubusercontent.com/iresty/openresty-devel-utils/master/lj-releng
chmod a+x utils/lj-releng
endif
test:
prove -I../test-nginx/lib -r -s t/
Lua
1
https://gitee.com/iresty/lua-resty-etcd.git
git@gitee.com:iresty/lua-resty-etcd.git
iresty
lua-resty-etcd
lua-resty-etcd
master

搜索帮助