Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Optimize: do not rebuild from scratch when something already exists
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 22 Dec 2009 17:06:31 +0000 (17:06 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 22 Dec 2009 17:06:31 +0000 (17:06 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6924 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/cmake_simgrid.conf

index 1ab7a2d..da0d7e3 100644 (file)
@@ -33,8 +33,15 @@ wait_archive() {
 make_dist() {
   get_version
   if [ ! -e ${SIMGRID_BASEDIR}/${version}.tar.gz ] ; then
 make_dist() {
   get_version
   if [ ! -e ${SIMGRID_BASEDIR}/${version}.tar.gz ] ; then
+    cd ${SIMGRID_BASEDIR}
     echo "rebuild the missing files for compilation"
     echo "rebuild the missing files for compilation"
-    ./bootstrap && ./configure --enable-maintainer-mode --disable-compile-optimizations
+    if [ ! -e configure ] ; then
+      ./bootstrap
+    fi
+    if [ ! -e Makefile ] ; then
+       # Disable compilation optim to make it built faster
+       ./configure --enable-maintainer-mode --disable-compile-optimizations
+    fi
     echo "Make the archive"
     make all dist
 
     echo "Make the archive"
     make all dist