From 05d4b9aafd43fb7a759dc79599645d3e703c044e Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 18 May 2001 16:30:31 -0400 Subject: [PATCH] duh --- Source/cmUnixMakefileGenerator.cxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 3e47dca5f..427df10e0 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,