| 1 | |
| 2 | |
| 3 | |
| 4 | @$(INSTALL) -d resty_modules/lualib/resty |
| 5 | @test -f resty_modules/lualib/resty/string.lua || curl -s -o resty_modules/lualib/resty/string.lua https://raw.githubusercontent.com/openresty/lua-resty-string/master/lib/resty/string.lua |
| 6 | |
| 7 | -install: all |
| 8 | +install: |
| 9 | $(INSTALL) -d $(DESTDIR)$(LUA_LIB_DIR)/resty |
| 10 | - $(INSTALL) resty_modules/lualib/resty/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty |
| 11 | $(INSTALL) lib/resty/*.lua $(DESTDIR)$(LUA_LIB_DIR)/resty |
| 12 | |
| 13 | test: install |