mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
18 lines
539 B
Bash
Executable File
18 lines
539 B
Bash
Executable File
#!/bin/bash
|
|
|
|
NUMCORES=`cat /proc/cpuinfo | grep -cE '^processor'`
|
|
|
|
mkdir -p build
|
|
cd build
|
|
|
|
[[ -f "CMakeCache.txt" ]] && rm -f "CMakeCache.txt"
|
|
# This is for regular developers and used by our installer
|
|
cmake -DCMAKE_INSTALL_PREFIX= -DWANT_STATIC_LIBS=ON ..
|
|
make -j$NUMCORES
|
|
|
|
cd ..
|
|
echo 'You may now launch MegaGlest from this directory like this:'
|
|
echo 'mk/linux/megaglest --ini-path=mk/linux/ --data-path=mk/linux/'
|
|
echo 'or from within the build directory:'
|
|
echo '../mk/linux/megaglest --ini-path=../mk/linux/ --data-path=../mk/linux/'
|