clean-build-all.sh 928 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#!/bin/bash

if [ ! -f myconfig.sh ]; then
    cp config.sh myconfig.sh
fi

source myconfig.sh

echo UNINSTALL, MAKE, AND INSTALL MiniGUI FIRST...
cd minigui
./autogen.sh; ./configure $GOPTS --with-runmode=$RUNMODE $MGOPTS
sudo make uninstall; make clean; make -j$NR_JOBS; sudo make install
cd ..

echo UNINSTALL AND CLEAN OTHERS...
for comp in minigui-res mgncs4touch mgncs mgeff mgplus mgutils; do
    cd $comp
    ./autogen.sh; ./configure $GOPTS
    sudo make uninstall; make clean
    cd ..
done

echo MAKE AND INSTALL COMPONENTS NOW...
for comp in minigui-res mgutils mgplus mgeff mgncs mgncs4touch; do
    cd $comp
    make -j$NR_JOBS; sudo make install
    cd ..
done

echo MAKE AND INSTALL TOOLS, TESTS, SAMPLES, AND DEMOS NOW...
for comp in mg-tools mg-tests mg-samples mg-demos cell-phone-ux-demo; do
    cd $comp
    ./autogen.sh; ./configure $GOPTS
    make clean; make -j$NR_JOBS; sudo make install
    cd ..
done