From 2a33ef2344145e12f1eea96214cdb317857321c1 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 31 Aug 2021 22:20:15 +0200 Subject: directory service added --- ecp/build.sh | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'ecp/build.sh') diff --git a/ecp/build.sh b/ecp/build.sh index 0b205dd..7669db1 100755 --- a/ecp/build.sh +++ b/ecp/build.sh @@ -1,8 +1,24 @@ #!/bin/sh -subdirs="src util test" - -for i in $subdirs; do - (cd $i && make $1 && cd ..) || exit; -done +if [ -z $1 ]; then + ARG="all" +else + ARG=$1 +fi +cd src +make clean +if [ $ARG == "all" ]; then + make || exit + make install +fi +cd ../util +make clean +if [ $ARG == "all" ]; then + make || exit +fi +cd ../test +make clean +if [ $ARG == "all" ]; then + make +fi -- cgit v1.2.3