summaryrefslogtreecommitdiff
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-18 16:30:31 -0400
committerKen Martin <ken.martin@kitware.com>2001-05-18 16:30:31 -0400
commit05d4b9aafd43fb7a759dc79599645d3e703c044e (patch)
tree3b17fa4ae36d8d9dce8203c84e44b43a8a1d12dc /Source/cmUnixMakefileGenerator.cxx
parent72bc7951bececf61f259198dc42c2a5a41b19705 (diff)
downloadcmake-05d4b9aafd43fb7a759dc79599645d3e703c044e.tar.gz
duh
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 3e47dca5f5..427df10e03 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,