create phony targets for each module name, so you can type 'make ntoskrnl' instead...
authorRoyce Mitchell III <royce3@ev1.net>
Thu, 13 Jan 2005 04:17:53 +0000 (04:17 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Thu, 13 Jan 2005 04:17:53 +0000 (04:17 +0000)
svn path=/branches/xmlbuildsystem/; revision=13018

reactos/tools/rbuild/backend/mingw/modulehandler.cpp

index 2fb5dbb..2803ef7 100644 (file)
@@ -515,6 +515,13 @@ MingwModuleHandler::GenerateMacrosAndTargets (
 \r
        GenerateMacros ( module, cflagsMacro, nasmflagsMacro, objectsMacro );\r
 \r
+       // generate phony target for module name\r
+       fprintf ( fMakefile, ".PHONY: %s\n",\r
+               module.name.c_str() );\r
+       fprintf ( fMakefile, "%s: %s\n\n",\r
+               module.name.c_str(),\r
+               module.GetPath().c_str() );\r
+\r
        // future references to the macros will be to get their values\r
        cflagsMacro = ssprintf("$(%s)",cflagsMacro.c_str());\r
        nasmflagsMacro = ssprintf("$(%s)",nasmflagsMacro.c_str());\r