dmake: don't generate Makefile if there are no src files

This commit is contained in:
Daniel Marjamäki 2009-01-09 18:13:00 +00:00
parent 6bdb14edfd
commit 38286a7d57
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ int main()
// Get files..
std::vector<std::string> srcfiles;
FileLister::RecursiveAddFiles(srcfiles, "src/", true);
if (srcfiles.empty())
{
std::cout << "No source files found." << std::endl;
exit(1);
}
std::vector<std::string> testfiles;
FileLister::RecursiveAddFiles(testfiles, "test/", true);