Skip to content

Commit df3cde7

Browse files
committed
chore(makefile) add Makefile to support installations of Lua library
1 parent be6960e commit df3cde7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
OPENRESTY_PREFIX=/usr/local/openresty
2+
3+
#LUA_VERSION := 5.1
4+
PREFIX ?= /usr/local
5+
LUA_INCLUDE_DIR ?= $(PREFIX)/include
6+
LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
7+
INSTALL ?= install
8+
9+
.PHONY: all test install
10+
11+
all: ;
12+
13+
install: all
14+
$(INSTALL) -d $(DESTDIR)$(LUA_LIB_DIR)/resty/kong/
15+
$(INSTALL) -m 664 lualib/resty/kong/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty/kong/

0 commit comments

Comments
 (0)