aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiale Zhi <vipcalio@gmail.com>2015-07-16 14:12:46 -0700
committerJiale Zhi <vipcalio@gmail.com>2015-07-16 14:12:46 -0700
commitbbd0df6bca3cac22138225d6a36243ce767d5881 (patch)
tree95d0fa3d3586dfa27c5f25016749ea179211a02b
parentbfadf076d1231796d9e694f13d7a90f86038b89d (diff)
parentbb0b28cbdf41881b2b1afeadf2038d036485427b (diff)
downloadlua-resty-cookie-bbd0df6bca3cac22138225d6a36243ce767d5881.tar.gz
lua-resty-cookie-bbd0df6bca3cac22138225d6a36243ce767d5881.tar.bz2
lua-resty-cookie-bbd0df6bca3cac22138225d6a36243ce767d5881.zip
Merge pull request #9 from stockrt/masterv0.1.0
Add Makefile
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1b7e6b5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+OPENRESTY_PREFIX=/usr/local/openresty
+
+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
+