Commit f3ef7fc4 authored by 黄振令's avatar 黄振令

【修改内容】增加make package命令 生产发布包

【提交人】huang.zhenling
parent 89a95333
#! /bin/bash
export LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):./lib/
./midware &
./kcloud &
./Z3GatewayHost &
.PHONY: doc detect config reconfig toolchain sub-mods final-out env cmake one help
.PHONY: doc detect config reconfig toolchain sub-mods final-out env cmake one help package
all: detect config toolchain sub-mods final-out
$(TOP_Q) \
......@@ -192,6 +192,31 @@ distclean:
rm -rf $$(ls -I $(CONFIG_TOOLCHAIN_NAME)); \
fi \
fi
buildDate=$(shell date "+%Y.%m.%d")
releaseDir=release$(buildDate)
package:
@echo "$(buildDate)"
echo "$(releaseDir)"
rm -rf $(releaseDir)
mkdir $(releaseDir)
mkdir $(releaseDir)/lib
mkdir $(releaseDir)/tsl
cp zlog.conf $(TOP_DIR)/$(releaseDir)
-cp -rf $(TOP_DIR)/tsl $(TOP_DIR)/$(releaseDir)/tsl
cp -rf $(TOP_DIR)/output/release/lib/*.so $(TOP_DIR)/$(releaseDir)/lib
cp -rf $(TOP_DIR)/output/release/bin/* $(TOP_DIR)/$(releaseDir)/
cp -rf $(TOP_DIR)/run.sh $(TOP_DIR)/$(releaseDir)/
ifeq ($(CONFIG_VENDOR),ubuntu)
cp -rf $(TOP_DIR)/common/nanomsg/libnanomsg_ubuntu.so $(TOP_DIR)/$(releaseDir)/lib/libnanomsg.so.5
cp -rf $(TOP_DIR)/common/ev/libev_ubuntu.so $(TOP_DIR)/$(releaseDir)/lib
else
cp -rf $(TOP_DIR)/common/nanomsg/libnanomsg.so $(TOP_DIR)/$(releaseDir)/lib
cp -rf $(TOP_DIR)/common/ev/libev.so $(TOP_DIR)/$(releaseDir)/lib
endif
cp -rf $(TOP_DIR)/platform/zigbee/app/builder/Z3GatewayHost/build/exe/Z3GatewayHost $(TOP_DIR)/$(releaseDir)/
echo $(PWD)
ifeq ($(shell uname),Darwin)
KCONFIG_MCONF := tools/prebuilt/macos/kconfig-frontends-mac/kconfig-mconf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment