Index: tools/build/v2/tools/common.jam =================================================================== --- tools/build/v2/tools/common.jam (revision 47174) +++ tools/build/v2/tools/common.jam (working copy) @@ -576,7 +576,14 @@ $(<)-mkdir = true ; # Schedule the mkdir build action. - MkDir1 $(<) ; + if [ os.name ] = NT + { + MkDir1-quick-fix-for-windows $(<) ; + } + else + { + MkDir1-quick-fix-for-unix $(<) ; + } # Prepare a Jam 'dirs' target that can be used to make the build only # construct all the target directories. @@ -617,6 +624,21 @@ } +# (todo) +# The following quick-fix actions should be replaced using the original MkDir1 +# action once Boost Jam gets updated to correctly detect different paths leading +# up to the same filesystem target and triggers their build action only once. +# (todo) (04.07.2008.) (Jurko) +actions MkDir1-quick-fix-for-unix +{ + mkdir -p "$(<)" +} +actions MkDir1-quick-fix-for-windows +{ + if not exist "$(<)\\" mkdir "$(<)" +} + + actions piecemeal together existing Clean { $(RM) "$(>)"