configure script now cleans
authorJavier S. Pedro <maemo@javispedro.com>
Sun, 11 Oct 2009 16:19:37 +0000 (18:19 +0200)
committerJavier S. Pedro <maemo@javispedro.com>
Sun, 11 Oct 2009 16:19:37 +0000 (18:19 +0200)
configure

index dc477fb..19eb0c1 100755 (executable)
--- a/configure
+++ b/configure
@@ -2,8 +2,10 @@
 
 if [ -r /etc/maemo_version ]; then
        #We are on Maemo
-       debian/rules configure
-       exit
+       fakeroot debian/rules clean > /dev/null
+       debian/rules configure > /dev/null
+       echo "Configured for Maemo build. You can dpkg-buildpackage now."
+       exit 0
 fi
 
 ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH)
@@ -11,9 +13,16 @@ GAME_VERSION=$(head -n 1 debian/changelog | sed 's/[^0-9.-]//g')
 
 echo ARCH="${ARCH}" > config.mk
 echo CONF_HGW=0 >> config.mk
+echo CONF_GUI=0 >> config.mk
 echo CONF_XSP=0 >> config.mk
 echo ASFLAGS="" >> config.mk
 echo CFLAGS="-Wall -g -O2" >> config.mk
 echo CXXFLAGS="-Wall -g -O2" >> config.mk
 echo LDFLAGS="-Wl,-z,defs" >> config.mk
 
+make clean > /dev/null
+
+echo "Configured for non-Maemo $ARCH build. You can make now."
+
+exit 0
+