From 5ee033b3f16717e3a437aa4cc207cb0d760ac93d Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 18 六月 2020 10:41:55 +0800
Subject: [PATCH] add script

---
 Makefile |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index a5b0d8f..75a2d0c 100755
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-DIRS = common netdisk
+DIRS = common device service
 
 all:
 	for i in $(DIRS); do \
@@ -17,6 +17,16 @@
 	- ipcrm -S 146
 	- ipcrm -S 8899
 
+PACKAGE_NAME=netdisk_bin.tar.gz
+
+package:
+	ls ./build/bin > /dev/null  2> /dev/null ||  mkdir -p ./build/bin && cp ./service/netdisk_service ./build/bin/
+	ls ./build/common > /dev/null 2> /dev/null  || mkdir -p ./build/common && cp ./common/libusgcommon.a ./build/common && cp ./common/libusgcommon.so ./build/common
+	cp -a ./data ./build
+	cp -avx ./script/* ./build
+	tar -czvf $(PACKAGE_NAME) ./build
+
+
 tarname = basic_pack.tar.gz
 
 tar:
@@ -33,4 +43,4 @@
 	cp  ./algorithm/libalg.so basic_pack/lib/
 	cp README.mk basic_pack
 	cp test/test_right_walk2.c basic_pack
-	tar -czvf $(tarname) basic_pack
\ No newline at end of file
+	tar -czvf $(tarname) basic_pack

--
Gitblit v1.8.0