From 747e67b7e358d86e7677cd4436a560f545d19dc2 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Sun, 28 Mar 2004 16:36:38 -0500 Subject: ENH: Add a way to clean additional files --- Source/cmLocalUnixMakefileGenerator.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 allsources; -- cgit v0.12