From bb0b8a5bed072a5203baf3ea963106c50ec2287e Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 3 Feb 2011 07:02:30 +0000 Subject: Solved problem of auto dependency scan not happening in case a rule exists (and not only for implicit rule) --- tools/mhmake/src/build.cpp | 4 ++-- tools/mhmake/src/util.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/mhmake/src/build.cpp b/tools/mhmake/src/build.cpp index f45624843..682a98410 100644 --- a/tools/mhmake/src/build.cpp +++ b/tools/mhmake/src/build.cpp @@ -1373,8 +1373,8 @@ mh_time_t mhmakefileparser::StartBuildTarget(fileinfo* pTarget,bool bCheckTarget } mh_time_t TargetDate=pTarget->GetDate(); - bool MakeTarget=false; mh_time_t YoungestDate=TargetDate; + bool MakeTarget=!TargetDate.DoesExist(); if (!pRule || !pRule->GetCommands().size()) { @@ -1456,7 +1456,7 @@ mh_time_t mhmakefileparser::StartBuildTarget(fileinfo* pTarget,bool bCheckTarget pRule->PrintCommands(pTarget); } #endif - if (!TargetDate.DoesExist() || ThisYoungestDate.IsNewer(TargetDate)) + if (ThisYoungestDate.IsNewer(TargetDate)) { #ifdef _DEBUG if (pRule,g_pPrintDependencyCheck && ThisYoungestDate.IsExistingFile() && TargetDate.IsExistingFile()) diff --git a/tools/mhmake/src/util.h b/tools/mhmake/src/util.h index 68ff03992..f789584a1 100644 --- a/tools/mhmake/src/util.h +++ b/tools/mhmake/src/util.h @@ -50,7 +50,7 @@ #define PLATFORM "linux" #endif -#define MHMAKEVER "2.4.4" +#define MHMAKEVER "2.4.5" class makecommand { -- cgit v1.2.3