Skip to content

Commit

Permalink
chore(makefile) add Makefile to support installations of Lua library
Browse files Browse the repository at this point in the history
  • Loading branch information
dndx committed May 20, 2019
1 parent be6960e commit df3cde7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
OPENRESTY_PREFIX=/usr/local/openresty

#LUA_VERSION := 5.1
PREFIX ?= /usr/local
LUA_INCLUDE_DIR ?= $(PREFIX)/include
LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
INSTALL ?= install

.PHONY: all test install

all: ;

install: all
$(INSTALL) -d $(DESTDIR)$(LUA_LIB_DIR)/resty/kong/
$(INSTALL) -m 664 lualib/resty/kong/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty/kong/

0 comments on commit df3cde7

Please sign in to comment.