Skip to content

Commit

Permalink
updated Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Feb 28, 2012
1 parent 811675c commit 5dee140
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Makefile
@@ -1,11 +1,18 @@
OPENRESTY_PREFIX=/usr/local/openresty-debug
.PHONY: all test

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

test:
PATH=$(OPENRESTY_PREFIX)/nginx/sbin:$$PATH prove -I../test-nginx/lib -r t
.PHONY: all test install

all: ;

install: all
cp -r lib/resty $(OPENRESTY_PREFIX)/lualib/
$(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 5dee140

Please sign in to comment.