1 Star 0 Fork 224

NoC/onlyoffice

forked from 毕升Office/onlyoffice 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.61 KB
一键复制 编辑 原始数据 按行查看 历史
GRUNT = grunt
GRUNT_FLAGS = --no-color -v
OUTPUT_DIR = deploy
OUTPUT = $(OUTPUT_DIR)
COMPANY_NAME ?= onlyoffice
PRODUCT_NAME ?= documentserver
PRODUCT_VERSION ?= 0.0.0
BUILD_NUMBER ?= 0
GRUNT_ENV += PRODUCT_VERSION=$(PRODUCT_VERSION)
GRUNT_ENV += BUILD_NUMBER=$(BUILD_NUMBER)
WEBAPPS_DIR = web-apps
ifeq ($(PRODUCT_NAME),$(filter $(PRODUCT_NAME),documentserver-de documentserver-ie))
WEBAPPS_DIR = web-apps-pro
endif
WEBAPPS = $(OUTPUT)/$(WEBAPPS_DIR)
NODE_MODULES = build/node_modules ../$(WEBAPPS_DIR)/build/node_modules
#PACKAGE_JSON = build/package.json ../$(WEBAPPS_DIR)/build/package.json
WEBAPPS_FILES += ../$(WEBAPPS_DIR)/deploy/web-apps/apps/api/documents/api.js
WEBAPPS_FILES += ../$(WEBAPPS_DIR)/deploy/web-apps/apps/documenteditor/main/app.js
WEBAPPS_FILES += ../$(WEBAPPS_DIR)/deploy/web-apps/apps/presentationeditor/main/app.js
WEBAPPS_FILES += ../$(WEBAPPS_DIR)/deploy/web-apps/apps/spreadsheeteditor/main/app.js
SDKJS_FILES += word/sdk-all.js
SDKJS_FILES += cell/sdk-all.js
SDKJS_FILES += slide/sdk-all.js
.PHONY: all desktop
all: $(WEBAPPS)
$(WEBAPPS): $(WEBAPPS_FILES)
mkdir -p $(OUTPUT)/$(WEBAPPS_DIR) && \
cp -r -t $(OUTPUT)/$(WEBAPPS_DIR) ../$(WEBAPPS_DIR)/deploy/**
$(WEBAPPS_FILES): $(NODE_MODULES) $(SDKJS_FILES)
cd ../$(WEBAPPS_DIR)/build && \
$(GRUNT_ENV) $(GRUNT) deploy-$(filter %editor documents,$(subst /, ,$(@D)))-component $(GRUNT_FLAGS)
$(SDKJS_FILES): $(NODE_MODULES)
cd build && \
$(GRUNT_ENV) $(GRUNT) build_$(@D) $(GRUNT_FLAGS)
desktop: GRUNT_FLAGS += --desktop=true
desktop: all
clean:
rm -f $(WEBAPPS_FILES) $(SDKJS_FILES)
%/node_modules: %/package.json
cd $(dir $@) && npm install
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/No_C/onlyoffice.git
git@gitee.com:No_C/onlyoffice.git
No_C
onlyoffice
onlyoffice
0byte

搜索帮助