diff --git a/ppremake/ppCommandFile.cxx b/ppremake/ppCommandFile.cxx index 7f5b245d61..6402fd3172 100644 --- a/ppremake/ppCommandFile.cxx +++ b/ppremake/ppCommandFile.cxx @@ -1435,10 +1435,11 @@ handle_mkdir_command() { } else { vector::const_iterator wi; for (wi = words.begin(); wi != words.end(); ++wi) { - Filename dirname(*wi, "."); - if (!dirname.make_dir()) { + Filename dirname(*wi); + Filename filename(*wi, "file"); + if (!filename.make_dir()) { if (!dirname.is_directory()) { - cerr << "Unable to create directory " << *wi << "\n"; + cerr << "Unable to create directory " << dirname << "\n"; } } }