From a24ff4e453701b927959555ce7dab895870e6ae8 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 24 Mar 2008 10:26:38 -0400 Subject: ENH: add PHONY targets --- Source/cmGlobalUnixMakefileGenerator3.cxx | 2 +- Source/cmLocalUnixMakefileGenerator3.cxx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 0871bc9..e2512c9 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -967,7 +967,7 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule } } lg->WriteMakeRule(ruleFileStream, "Help Target", - "help:", + "help", no_depends, commands, true); ruleFileStream << "\n\n"; } diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index b0f7662..2e93d8c 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -638,8 +638,11 @@ cmLocalUnixMakefileGenerator3 replace = *i; os << "\t" << replace.c_str() << "\n"; } + if(symbolic) + { + os << ".PHONY : " << tgt.c_str() << "\n"; + } os << "\n"; - // Add the output to the local help if requested. if(in_help) { -- cgit v0.12