Skip to content
Browse files

update Makefile and gitignore

  • Loading branch information...
1 parent 9af7e52 commit 47dfa696ea15db1fea82fe2e1467cb8dd9924a3a smallfish committed Oct 30, 2012
Showing with 25 additions and 0 deletions.
  1. +7 −0 .gitignore
  2. +18 −0 Makefile
View
7 .gitignore
@@ -0,0 +1,7 @@
+wp
+*.swo
+*~
+go
+t/servroot/
+reindex
+*.t_
View
18 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
+

0 comments on commit 47dfa69

Please sign in to comment.
Something went wrong with that request. Please try again.