build tools on configure
authorPierre Habouzit <madcoder@debian.org>
Fri, 9 Nov 2007 23:03:27 +0000 (00:03 +0100)
committerPierre Habouzit <madcoder@debian.org>
Fri, 9 Nov 2007 23:03:27 +0000 (00:03 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
configure

index 41f62eb..a7398f3 100755 (executable)
--- a/configure
+++ b/configure
@@ -20,9 +20,12 @@ builddir=.build-$(hostname)-$(gcc -dumpmachine)-$(gcc -dumpversion)
 rm -rf $builddir
 mkdir -p $builddir
 rm -f build && ln -s $builddir build
+rm -f madmutt && ln -s $builddir/madmutt madmutt
 
 if test $# -eq 0; then
-    cd $builddir && cmake -DWITH_NNTP=1 -DWITH_IDN=1 -DUSE_HCACHE=1 -DCMAKE_INSTALL_PREFIX=/usr ..
+    (cd $builddir && cmake -DWITH_NNTP=1 -DWITH_IDN=1 -DUSE_HCACHE=1 -DCMAKE_INSTALL_PREFIX=/usr ..)
 else
-    cd $builddir && cmake "$@" ..
+    (cd $builddir && cmake "$@" ..)
 fi
+
+make -C tools