We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9cfb9f commit e5b75acCopy full SHA for e5b75ac
Makefile
@@ -1,11 +1,18 @@
1
-OPENRESTY_PREFIX=/usr/local/openresty
2
-.PHONY: all test
+OPENRESTY_PREFIX=/usr/local/openresty-debug
3
4
-all: ;
+PREFIX ?= /usr/local
+LUA_INCLUDE_DIR ?= $(PREFIX)/include
5
+LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
6
+INSTALL ?= install
7
-test:
- PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r t
8
+.PHONY: all test install
9
+
10
+all: ;
11
12
install: all
- cp -r lib/resty $(OPENRESTY_PREFIX)/lualib/
13
+ $(INSTALL) -d $(DESTDIR)/$(LUA_LIB_DIR)/resty
14
+ $(INSTALL) lib/resty/*.lua $(DESTDIR)/$(LUA_LIB_DIR)/resty
15
16
+test: all
17
+ PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r t
18
0 commit comments