aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/mhmakefileparser.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-08-04 09:37:27 +0000
committermarha <marha@users.sourceforge.net>2010-08-04 09:37:27 +0000
commitf19a1f2d41337986c94cecfd348aca32a5445993 (patch)
treeb50688dc07bfb1afadb4649d175bcbc64f1eb754 /tools/mhmake/src/mhmakefileparser.cpp
parent240baf59a219841c5f8942c82f7ed61da9d2323b (diff)
downloadvcxsrv-f19a1f2d41337986c94cecfd348aca32a5445993.tar.gz
vcxsrv-f19a1f2d41337986c94cecfd348aca32a5445993.tar.bz2
vcxsrv-f19a1f2d41337986c94cecfd348aca32a5445993.zip
Added possibility to force a dependency scan on a target with .AUTODEPS
Diffstat (limited to 'tools/mhmake/src/mhmakefileparser.cpp')
-rw-r--r--tools/mhmake/src/mhmakefileparser.cpp15
1 files changed, 15 insertions, 0 deletions
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
@@ -642,6 +642,21 @@ void mhmakefileparser::UpdateAutomaticDependencies(const refptr<fileinfo> &Targe
}
///////////////////////////////////////////////////////////////////////////////
+void mhmakefileparser::UpdateNoRuleAutomaticDependencies(const refptr<fileinfo> &Target)
+{
+ // we have to search for the include files in the Target
+ set< refptr<fileinfo> > Autodeps;
+ GetAutoDeps(Target,Autodeps);
+ // Now add these dependencies also to the rules
+ set< refptr<fileinfo> >::iterator It=Autodeps.begin();
+ while (It!=Autodeps.end())
+ {
+ Target->AddDep(*It);
+ It++;
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
const refptr<fileinfoarray> mhmakefileparser::GetIncludeDirs() const
{
string Includes=ExpandExpression("$(INCLUDES)");