8 ./*/*/*) rel="../../..";;
12 *) echo "cannot guess deepness of '$dir'"; exit 1
14 echo "all %: ; @\$(MAKE) -s -C $rel/build/$dir \$*" > $dir/Makefile
15 echo "-include \$(wildcard *.mk)" >> $dir/Makefile
18 find . -name CMakeLists.txt | while read file; do do_makefile $file; done
20 builddir=.build-$(hostname)-$(gcc -dumpmachine)-$(gcc -dumpversion)
25 if test $# -eq 0; then
26 cd $builddir && cmake -DWITH_NNTP=1 -DWITH_IDN=1 -DUSE_HCACHE=1 -DWITH_LIBESMTP=1 --with-prefix=/usr ..
28 cd $builddir && cmake "$@" ..