Skip to content

Commit d43b343

Browse files
committed
added a Makefile.
1 parent ee7af1a commit d43b343

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
OPENRESTY_PREFIX=/usr/local/openresty
2+
3+
PREFIX ?= /usr/local
4+
LUA_INCLUDE_DIR ?= $(PREFIX)/include
5+
LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
6+
INSTALL ?= install
7+
8+
.PHONY: all test install
9+
10+
all: ;
11+
12+
install: all
13+
$(INSTALL) -d $(DESTDIR)/$(LUA_LIB_DIR)/resty/websocket
14+
$(INSTALL) lib/resty/websocket/*.lua $(DESTDIR)/$(LUA_LIB_DIR)/resty/websocket/
15+
16+
test: all
17+
PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r t
18+

0 commit comments

Comments
 (0)