.PHONY: all install clean

all:
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/LuaJIT-2.1-20160517 && $(MAKE) TARGET_STRIP=@: CCDEBUG=-g CC=cc PREFIX=/usr/local/openresty/luajit
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-cjson-2.1.0.4 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 LUA_CMODULE_DIR=/usr/local/openresty/lualib LUA_MODULE_DIR=/usr/local/openresty/lualib CJSON_CFLAGS="-g -fpic" CC=cc
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-redis-parser-0.12 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 LUA_LIB_DIR=/usr/local/openresty/lualib CC=cc
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-rds-parser-0.06 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 LUA_LIB_DIR=/usr/local/openresty/lualib CC=cc
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/nginx-1.9.15 && $(MAKE)

install: all
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/LuaJIT-2.1-20160517 && $(MAKE) install TARGET_STRIP=@: CCDEBUG=-g CC=cc PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-cjson-2.1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 LUA_CMODULE_DIR=/usr/local/openresty/lualib LUA_MODULE_DIR=/usr/local/openresty/lualib CJSON_CFLAGS="-g -fpic" CC=cc
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-redis-parser-0.12 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 LUA_LIB_DIR=/usr/local/openresty/lualib CC=cc
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-rds-parser-0.06 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 LUA_LIB_DIR=/usr/local/openresty/lualib CC=cc
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-dns-0.16 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-memcached-0.14 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-redis-0.24 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-mysql-0.16 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-string-0.09 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-upload-0.09 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-websocket-0.05 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-lock-0.04 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-lrucache-0.04 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-core-0.1.6 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/lua-resty-upstream-healthcheck-0.04 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=/home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/resty-cli-0.12 && /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/install bin/* $(DESTDIR)/usr/local/openresty/bin/
	cp /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/resty.index $(DESTDIR)/usr/local/openresty/
	cp -r /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/pod $(DESTDIR)/usr/local/openresty/
	cd /home/qa-deploy-utils/qa_shell_script/TEMP/openresty-1.9.15.1/build/nginx-1.9.15 && $(MAKE) install DESTDIR=$(DESTDIR)

clean:
	rm -rf build
