From 1b26f1dd275e7ff947fcf2ecdbbad8f6bc1e0b49 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期五, 19 六月 2020 16:06:14 +0800 Subject: [PATCH] update --- Makefile | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index ab20156..12edad4 100755 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DIRS = common hcnetdisk_wrapper netdisk +DIRS = common device service all: for i in $(DIRS); do \ @@ -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/ && 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 = 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