update build system
This commit is contained in:
parent
adc77ebadf
commit
ebd0f89493
@ -2,15 +2,16 @@
|
|||||||
|
|
||||||
cmd=${1}
|
cmd=${1}
|
||||||
package=wavelib
|
package=wavelib
|
||||||
address=/opt
|
address=/opt/stow
|
||||||
|
targetdir=/usr/local
|
||||||
|
|
||||||
if [[ ${cmd} == "configure" && ! -d "build/" ]]; then
|
if [[ ${cmd} == "configure" && ! -d "build/" ]]; then
|
||||||
mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/stow/${package} -DCMAKE_BUILD_TYPE=Release
|
mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/${package} -DCMAKE_BUILD_TYPE=Release
|
||||||
elif [[ ${cmd} == "configure" ]]; then
|
elif [[ ${cmd} == "configure" ]]; then
|
||||||
cd build && rm -rf * && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/stow/${package} -DCMAKE_BUILD_TYPE=Release
|
cd build && rm -rf * && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/${package} -DCMAKE_BUILD_TYPE=Release
|
||||||
elif [[ ${cmd} == "build" ]]; then
|
elif [[ ${cmd} == "build" ]]; then
|
||||||
cd build && make
|
cd build && make
|
||||||
elif [[ ${cmd} == "install" ]]; then
|
elif [[ ${cmd} == "install" ]]; then
|
||||||
cd build && sudo make install
|
cd build && sudo make install
|
||||||
sudo stow --dir=${address}/stow --target=${address} ${package}
|
sudo stow --dir=${address} --target=${targetdir} ${package}
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user