mkdir build
cd build

mkdir movingliner
cd movingliner
cmake ../../movingliner
make -j4
mkdir /home/pi/bin
cp ./movingliner /home/pi/bin
echo beging build shuttercali

cd ../

mkdir shuttercali
cd shuttercali
cmake ../../shuttercali/project/LocationCali
make -j4 
cp ./shutter_calibrate /home/pi/bin

cd ../

mkdir console
cd console
cmake ../../calibration_console
make -j4
cp ./ocean_optics_calibration_console /home/pi/bin
cd ../

cd ../../
cp -r ./html/* /var/www/html
chmod +x /var/www/html/php/*.sh
