summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-11-25 12:34:53 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-11-25 12:34:53 (GMT)
commit4ed64cf73a389ff139649bce37e4eefae93329cd (patch)
tree6e83e5dca92110eec984908a5f61361ab3c881d9
parent153810cd829656383a8edc82adecf7463800d419 (diff)
downloadCMake-4ed64cf73a389ff139649bce37e4eefae93329cd.zip
CMake-4ed64cf73a389ff139649bce37e4eefae93329cd.tar.gz
CMake-4ed64cf73a389ff139649bce37e4eefae93329cd.tar.bz2
ENH: add GetCleanTargetName() which returns "clean" for makefiles, so it can
be used by the eclipse generator Alex
-rw-r--r--Source/cmGlobalGenerator.h1
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 8e1bf12..7a65116 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -224,6 +224,7 @@ public:
virtual const char* GetPackageSourceTargetName(){ return 0; }
virtual const char* GetEditCacheTargetName() { return 0; }
virtual const char* GetRebuildCacheTargetName() { return 0; }
+ virtual const char* GetCleanTargetName() { return 0; }
// what targets does the specified target depend on
std::vector<cmTarget *>& GetTargetDepends(cmTarget& target);
diff --git a/Source/cmGlobalUnixMakefileGenerator3.h b/Source/cmGlobalUnixMakefileGenerator3.h
index 0ca930f..6f10e71 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.h
+++ b/Source/cmGlobalUnixMakefileGenerator3.h
@@ -177,6 +177,7 @@ protected:
virtual const char* GetPackageSourceTargetName(){ return "package_source"; }
virtual const char* GetEditCacheTargetName() { return "edit_cache"; }
virtual const char* GetRebuildCacheTargetName() { return "rebuild_cache"; }
+ virtual const char* GetCleanTargetName() { return "clean"; }
// Some make programs (Borland) do not keep a rule if there are no
// dependencies or commands. This is a problem for creating rules