summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-28 21:36:38 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-03-28 21:36:38 (GMT)
commit747e67b7e358d86e7677cd4436a560f545d19dc2 (patch)
treee87ea5263946872e297795027f3bc5851a54e3f9 /Source
parent4a1f15c344bd4f014ac1275e2c81473aab7dc32f (diff)
downloadCMake-747e67b7e358d86e7677cd4436a560f545d19dc2.zip
CMake-747e67b7e358d86e7677cd4436a560f545d19dc2.tar.gz
CMake-747e67b7e358d86e7677cd4436a560f545d19dc2.tar.bz2
ENH: Add a way to clean additional files
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 76d4762..aec784f 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -609,6 +609,13 @@ void cmLocalUnixMakefileGenerator::OutputTargetRules(std::ostream& fout)
}
}
fout << "\n\n";
+ const char * additional_clean_files = m_Makefile->GetDefinition("ADDITIONAL_MAKE_CLEAN_FILES");
+ if ( additional_clean_files && strlen(additional_clean_files) > 0 )
+ {
+ fout << "ADDITIONAL_MAKE_CLEAN_FILES = ";
+ fout << additional_clean_files;
+ fout << "\n\n";
+ }
const char * qt_files = m_Makefile->GetDefinition("GENERATED_QT_FILES");
if (qt_files != NULL &&
strlen(m_Makefile->GetDefinition("GENERATED_QT_FILES"))>0)
@@ -2536,7 +2543,7 @@ void cmLocalUnixMakefileGenerator::OutputMakeRules(std::ostream& fout)
"clean",
"$(SUBDIR_CLEAN)",
"-@ $(RM) $(CLEAN_OBJECT_FILES) "
- " $(TARGETS) $(TARGET_EXTRAS) $(GENERATED_QT_FILES) $(GENERATED_FLTK_FILES)");
+ " $(TARGETS) $(TARGET_EXTRAS) $(GENERATED_QT_FILES) $(GENERATED_FLTK_FILES) $(ADDITIONAL_MAKE_CLEAN_FILES)");
// collect up all the sources
std::vector<std::string> allsources;