From 12b8cc5a429792c426db3a249706eb62e9900800 Mon Sep 17 00:00:00 2001 From: "Northcote, Jason" Date: Thu, 30 Jul 2015 12:59:15 -0700 Subject: [PATCH] Add openresty bundle Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e23641d --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +OPENRESTY_PREFIX=/usr/local/openresty-debug + +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 + $(INSTALL) lib/resty/*.lua $(DESTDIR)/$(LUA_LIB_DIR)/resty + +test: all + PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r t +