代码拉取完成,页面将自动刷新
INST_PREFIX ?= /usr
INST_LUADIR ?= $(INST_PREFIX)/share/lua/5.1
INST_BINDIR ?= /usr/bin
INSTALL ?= install
COPY ?= cp
LINK ?= ln
REMOVE ?= rm
CHMOD ?= chmod
LUAROCKS_VER ?= $(shell luarocks --version | grep -E -o "luarocks [0-9]+")
### help: Show Makefile rules.
.PHONY: help
help:
@echo Makefile rules:
@echo
@grep -E '^### [-A-Za-z0-9_]+:' Makefile | sed 's/###/ /'
### dev: Create Orange development ENV
.PHONY: dev
dev:
ifneq ($(LUAROCKS_VER),'luarocks 3')
luarocks install rockspec/orange-master-0.rockspec --tree=deps --only-deps --local
else
luarocks install --lua-dir=/usr/local/openresty/luajit rockspec/orange-master-0.rockspec --tree=deps --only-deps --local
endif
$(INSTALL) conf/nginx.conf.example conf/nginx.conf
$(INSTALL) conf/orange.conf.example conf/orange.conf
$(INSTALL) install/orange-master.sql conf/orange-master.sql
### install: Install the Orange
.PHONY: install
install:
$(INSTALL) -d /usr/local/orange/logs
$(INSTALL) -d /usr/local/orange/conf
$(INSTALL) -d /usr/local/orange/dashboard/views
$(INSTALL) -d /usr/local/orange/dashboard/static
$(INSTALL) conf/nginx.conf.example /usr/local/orange/conf/nginx.conf
$(INSTALL) conf/orange.conf.example /usr/local/orange/conf/orange.conf
$(INSTALL) conf/mime.types /usr/local/orange/conf/mime.types
$(INSTALL) install/orange-v0.8.1.sql /usr/local/orange/conf/orange-v0.8.1.sql
$(INSTALL) -d $(INST_LUADIR)/orange/dashboard
$(INSTALL) -d $(INST_LUADIR)/orange/orange
$(INSTALL) -d $(INST_LUADIR)/orange/bin
$(INSTALL) -d $(INST_LUADIR)/orange/api
$(COPY) -rf dashboard/* $(INST_LUADIR)/orange/dashboard
$(COPY) -rf dashboard/views/* /usr/local/orange/dashboard/views
$(COPY) -rf dashboard/static/* /usr/local/orange/dashboard/static
$(COPY) -rf orange/* $(INST_LUADIR)/orange/orange
$(COPY) -rf bin/* $(INST_LUADIR)/orange/bin
$(COPY) -rf api/* $(INST_LUADIR)/orange/api
$(INSTALL) bin/orange $(INST_BINDIR)/orange
$(REMOVE) -f /usr/local/bin/orange
$(LINK) -s $(INST_BINDIR)/orange /usr/local/bin/orange
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。