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 | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e677f6b..75a2d0c 100755 --- a/Makefile +++ b/Makefile @@ -17,14 +17,14 @@ - 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/ + 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 @@ -43,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