Explorar o código

* Small build fix

svn: 727
Bryan Drewery %!s(int64=22) %!d(string=hai) anos
pai
achega
269aa01039
Modificáronse 1 ficheiros con 12 adicións e 9 borrados
  1. 12 9
      build

+ 12 - 9
build

@@ -122,24 +122,27 @@ fi
 
 echo "[*] Building ${PACKNAME}::${type} for $os"
 
-# Run ./configure, then verify it's ok
-echo "[*] Configuring..."
-umask 077 >/dev/null
-
-./configure --silent --with-pack=${pack}
-
 MAKE="`which gmake`"
 if test -z "${MAKE}"; then
  MAKE="`which make`"
 fi
 
+if [ $clean = "2" ]; then
+ if test -f Makefile; then
+  echo "[*] DistCleaning old files..."
+  ${MAKE} distclean > /dev/null
+ fi
+fi
+
+# Run ./configure, then verify it's ok
+echo "[*] Configuring..."
+umask 077 >/dev/null
+
+./configure --silent --with-pack=${pack}
 
 if [ $clean = "1" ]; then
  echo "[*] Cleaning up old binaries/files..."
  ${MAKE} clean > /dev/null
-elif [ $clean = "2" ]; then
- echo "[*] DistCleaning old files..."
- ${MAKE} distclean > /dev/null
 fi
 
 _build()