replaced lib sub-flag with include
This commit is contained in:
parent
b19846eb65
commit
9918c4ab4a
6
build.sh
6
build.sh
@ -52,7 +52,7 @@ if [[ "$1" == "test" ]]; then ########## TEST ##########
|
||||
echo "Output generated as '$testOutput'"
|
||||
###
|
||||
elif [[ "$1" == "install" ]]; then ########## INSTALL ##########
|
||||
if [[ "$2" != "lib" ]]; then
|
||||
if [[ "$2" == "include" ]]; then
|
||||
###
|
||||
echo "Installing header files..."
|
||||
###
|
||||
@ -63,6 +63,8 @@ elif [[ "$1" == "install" ]]; then ########## INSTALL ##########
|
||||
fi
|
||||
|
||||
cp $includeFiles $includeDirectory
|
||||
|
||||
exit
|
||||
fi
|
||||
|
||||
###
|
||||
@ -85,7 +87,6 @@ elif [[ "$1" == "install" ]]; then ########## INSTALL ##########
|
||||
|
||||
$compiler $flags -o $installOutput *.o
|
||||
|
||||
if [[ "$2" != "lib" ]]; then
|
||||
###
|
||||
echo "Installing library..."
|
||||
###
|
||||
@ -97,7 +98,6 @@ elif [[ "$1" == "install" ]]; then ########## INSTALL ##########
|
||||
echo -e "\nCompilation failed. Did you run 'configure.sh' first and 'build.sh' with sudo?"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
###
|
||||
echo "Compiling why2-app..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user