newpath = newpath + "\\ ";
else
newpath = newpath + *p;
- *p++;
+ p++;
}
return newpath;
}
if ( escapedName.size() > 0 )
{
- fprintf ( f,
- "%s%c%s: | %s\n",
- parent.c_str (),
- cSep,
- escapedName.c_str (),
- parent.c_str () );
-
- fprintf ( f,
- "\t$(ECHO_MKDIR)\n" );
-
- fprintf ( f,
- "\t${mkdir} $@\n" );
+ if ( ! (escapedName == "tools" &&
+ ( parent == "$(OUTPUT)" || parent == "$(INTERMEDIATE)" ) ) )
+ {
+ fprintf ( f,
+ "%s%c%s: | %s\n",
+ parent.c_str (),
+ cSep,
+ escapedName.c_str (),
+ parent.c_str () );
+
+ fprintf ( f,
+ "\t$(ECHO_MKDIR)\n" );
+
+ fprintf ( f,
+ "\t${mkdir} $@\n" );
+ }
path = parent + sSep + escapedName;
}
i->second->CreateRule ( f, path );
}
}
+
+Directory::~Directory()
+{
+ std::map<std::string, Directory*>::iterator theIterator;
+ for ( theIterator = subdirs.begin (); theIterator != subdirs.end (); theIterator++ )
+ delete theIterator->second;
+}