๐Ÿ“ฆ fffonion / lua-resty-shdict-server

๐Ÿ“„ Makefile ยท 17 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17OPENRESTY_PREFIX=/usr/local/openresty

PREFIX ?=          /usr/local
LUA_LIB_DIR ?=     $(PREFIX)/lib/lua/$(LUA_VERSION)
INSTALL ?= install

.PHONY: all test install

all: ;

install: all
        $(INSTALL) -d $(DESTDIR)$(LUA_LIB_DIR)/resty/shdict/
        $(INSTALL) lib/resty/shdict/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty/shdict/

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