forked from api7/lua-var-nginx-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 643 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
OPENRESTY_PREFIX=/usr/local/openresty
PREFIX ?= /usr/local
LUA_INCLUDE_DIR ?= $(PREFIX)/include
LUA_LIB_DIR ?= $(PREFIX)/lualib/$(LUA_VERSION)
INSTALL ?= install
test = t/
.PHONY: all test install
install:
$(INSTALL) -d $(DESTDIR)$(LUA_LIB_DIR)/resty/ngxvar/
$(INSTALL) -m664 lib/resty/ngxvar/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty/ngxvar/
$(INSTALL) -m664 lib/resty/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty/
test:
PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r $(test)
### lint: Lint Lua source code
.PHONY: lint
lint:
luacheck -q lib
lj-releng lib/resty/*.lua
lj-releng lib/resty/ngxvar/*.lua