From f19a1f2d41337986c94cecfd348aca32a5445993 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 4 Aug 2010 09:37:27 +0000 Subject: Added possibility to force a dependency scan on a target with .AUTODEPS --- tools/mhmake/src/mhmakefileparser.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tools/mhmake/src/mhmakefileparser.cpp') diff --git a/tools/mhmake/src/mhmakefileparser.cpp b/tools/mhmake/src/mhmakefileparser.cpp index 30916878e..35d379cd0 100644 --- a/tools/mhmake/src/mhmakefileparser.cpp +++ b/tools/mhmake/src/mhmakefileparser.cpp @@ -641,6 +641,21 @@ void mhmakefileparser::UpdateAutomaticDependencies(const refptr &Targe } } +/////////////////////////////////////////////////////////////////////////////// +void mhmakefileparser::UpdateNoRuleAutomaticDependencies(const refptr &Target) +{ + // we have to search for the include files in the Target + set< refptr > Autodeps; + GetAutoDeps(Target,Autodeps); + // Now add these dependencies also to the rules + set< refptr >::iterator It=Autodeps.begin(); + while (It!=Autodeps.end()) + { + Target->AddDep(*It); + It++; + } +} + /////////////////////////////////////////////////////////////////////////////// const refptr mhmakefileparser::GetIncludeDirs() const { -- cgit v1.2.3