From 91ffb83a5f2a7a96cfa9fb3ab4e5a7f392894cba Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 2 Feb 2011 19:45:00 +0000 Subject: Solved problem of autodeps not checked when target does not exist and should build with implicit rule --- tools/mhmake/src/build.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/mhmake/src/build.cpp') diff --git a/tools/mhmake/src/build.cpp b/tools/mhmake/src/build.cpp index 8737bb268..f45624843 100644 --- a/tools/mhmake/src/build.cpp +++ b/tools/mhmake/src/build.cpp @@ -1456,7 +1456,7 @@ mh_time_t mhmakefileparser::StartBuildTarget(fileinfo* pTarget,bool bCheckTarget pRule->PrintCommands(pTarget); } #endif - if (ThisYoungestDate.IsNewer(TargetDate)) + if (!TargetDate.DoesExist() || ThisYoungestDate.IsNewer(TargetDate)) { #ifdef _DEBUG if (pRule,g_pPrintDependencyCheck && ThisYoungestDate.IsExistingFile() && TargetDate.IsExistingFile()) -- cgit v1.2.3