Skip to content

Commit e5b75ac

Browse files
committed
updated Makefile.
1 parent d9cfb9f commit e5b75ac

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

Makefile

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
OPENRESTY_PREFIX=/usr/local/openresty
2-
.PHONY: all test
1+
OPENRESTY_PREFIX=/usr/local/openresty-debug
32

4-
all: ;
3+
PREFIX ?= /usr/local
4+
LUA_INCLUDE_DIR ?= $(PREFIX)/include
5+
LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
6+
INSTALL ?= install
57

6-
test:
7-
PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r t
8+
.PHONY: all test install
9+
10+
all: ;
811

912
install: all
10-
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
1118

0 commit comments

Comments
 (0)