added possible build without installation

This commit is contained in:
Václav Šmejkal 2022-05-03 17:19:19 +02:00
parent 703c7d7044
commit 5056fe2764

View File

@ -79,16 +79,18 @@ elif [[ "$1" == "install" ]]; then ########## INSTALL ##########
$compiler $flags -o $installOutput *.o $compiler $flags -o $installOutput *.o
### if [[ "$2" != "lib" ]]; then
echo "Installing library..." ###
### echo "Installing library..."
###
mv $installOutput /usr/lib/ mv $installOutput /usr/lib/
# Compilation failed # Compilation failed
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo -e "\nCompilation failed. Did you run 'configure.sh' first and 'build.sh' with sudo?" echo -e "\nCompilation failed. Did you run 'configure.sh' first and 'build.sh' with sudo?"
exit 1 exit 1
fi
fi fi
### ###