Better support for parallel builds. Subdirs depend on their parent.

This commit is contained in:
Berk Geveci 2002-02-01 13:07:27 -05:00
parent 1bde29e9bd
commit 0813149896
1 changed files with 1 additions and 1 deletions

View File

@ -1135,7 +1135,7 @@ OutputSubDirectoryVars(std::ostream& fout,
for(unsigned int i =0; i < SubDirectories.size(); i++)
{
std::string subdir = FixDirectoryName(SubDirectories[i].c_str());
fout << target << "_" << subdir.c_str() << ":";
fout << target << "_" << subdir.c_str() << ": $(TARGETS)";
// Make each subdirectory depend on previous one. This forces
// parallel builds (make -j 2) to build in same order as a single