From 9b2d472b92665ab6afac8dcca9683c759b3fbb8a Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 30 六月 2020 17:41:41 +0800 Subject: [PATCH] update --- Makefile | 23 ++++++----------------- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index e677f6b..12edad4 100755 --- a/Makefile +++ b/Makefile @@ -17,30 +17,19 @@ - ipcrm -S 146 - ipcrm -S 8899 +PACKAGE_NAME=netdisk_bin.tar.gz package: - mkdir -p ./build/bin - cp ./service/netdisk_service ./build/bin/ - mkdir -p ./build/common - cp ./common/libusgcommon.a ./build/common - cp ./common/libusgcommon.so ./build/common + ls ./build/bin > /dev/null 2> /dev/null || mkdir -p ./build/bin && cp ./service/netdisk_service ./build/bin/ && cp ./service/test_client ./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 +tarname = netdisk_src.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