Create parent directory before creating the definition file
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp

Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
--- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp	2005-11-19 19:20:51 UTC (rev 19350)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp	2005-11-19 21:07:25 UTC (rev 19351)
@@ -1081,9 +1081,10 @@
 	CLEAN_FILE(stub_file)
 
 	fprintf ( fMakefile,
-	          "%s: %s $(WINEBUILD_TARGET)\n",
+	          "%s: %s $(WINEBUILD_TARGET) | %s\n",
 	          def_file.c_str (),
-	          dependencies.c_str () );
+	          dependencies.c_str (),
+	          GetDirectory ( def_file ).c_str () );
 	fprintf ( fMakefile, "\t$(ECHO_WINEBLD)\n" );
 	fprintf ( fMakefile,
 	          "\t%s -o %s --def -E %s\n",