summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 3e47dca..427df10 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -819,14 +819,26 @@ void cmUnixMakefileGenerator::OutputMakeRules(std::ostream& fout)
"${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE}/CMakeLists.txt "
"-S${CMAKE_CURRENT_SOURCE} -O${CMAKE_CURRENT_BINARY} "
"-H${CMAKE_SOURCE_DIR} -B${CMAKE_BINARY_DIR}");
+
+ this->OutputMakeRule(fout,
+ "rule to build cmake from source",
+ "${CMAKE_COMMAND}", "${CMAKE_SOURCE_DIR}/CMake/Source/*.cxx "
+ "${CMAKE_SOURCE_DIR}/CMake/Source/*.h",
+ "cd ${CMAKE_BINARY_DIR}/CMake/Source; "
+ "${MAKE} CMakeBuildTargets");
this->OutputMakeRule(fout,
"Rebuild the cache",
"rebuild_cache",
"${CMAKE_BINARY_DIR}/CMakeCache.txt",
"${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR}/CMakeLists.txt "
- "-S${CMAKE_SOURCE_DIR} -O${CMAKE_BINARY_DIR} "
+ "-MakeCache -S${CMAKE_SOURCE_DIR} -O${CMAKE_BINARY_DIR} "
"-H${CMAKE_SOURCE_DIR} -B${CMAKE_BINARY_DIR}");
-
+ // this->OutputMakeRule(fout,
+ // "Rebuild cmake dummy rule",
+ // "${CMAKE_COMMAND}",
+ // 0,
+ // "echo \"cmake might be out of date\"");
+
}
void cmUnixMakefileGenerator::OutputMakeRule(std::ostream& fout,