--- /tmp/work/old/src/tools/Makefile	2010-11-27 13:21:58.000000000 +0200
+++ src/tools/Makefile	2010-11-27 13:21:58.000000000 +0200
@@ -176,6 +176,11 @@
 # .WAIT to achieve "closure" of the predecessor/successor relationships.
 .ORDER: depend-${d} all-${d} dependall-${d} .WAIT install-${d}
 
+# prevent cleandir in real{all,depend} from interfering with subdir makes
+.ORDER: realdepend dependall-${d}
+.ORDER: realdepend depend-${d}
+.ORDER: realall all-${d}
+
 # make all/depend-${d} dependent on list of install targets
 depend-${d} all-${d} dependall-${d}: ${_deps}
 
