From 921607aa94e3ca3741a8997da50fc9872380f2d8 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 18 六月 2020 15:44:29 +0800
Subject: [PATCH] update

---
 Makefile |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/Makefile b/Makefile
index dc294a8..a2ae35a 100755
--- a/Makefile
+++ b/Makefile
@@ -17,20 +17,19 @@
 	- ipcrm -S 146
 	- ipcrm -S 8899
 
-tarname = basic_pack.tar.gz
+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 = netdis_str.tar.gz
 
 tar:
 	rm -f $(tarname)
 	git archive --format tar.gz --output "./$(tarname)" $(branch)
 
-tar2:
-	rm -f $(tarname)
-	mkdir -p basic_pack/include
-	mkdir -p basic_pack/lib
-	cp -a ./common/include/* basic_pack/include/
-	cp -a ./algorithm/include/* basic_pack/include/
-	cp  ./common/libusgcommon.so basic_pack/lib/
-	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

--
Gitblit v1.8.0