diff options
author | Brad King <brad.king@kitware.com> | 2004-10-29 14:52:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-10-29 14:52:52 (GMT) |
commit | 37ae7d6acf410157ade39f884845117438d5946a (patch) | |
tree | fda2dcf3a477b9a0499ce7346f93ee6e3f6ec6e2 /Source/cmLocalUnixMakefileGenerator2.h | |
parent | 53763e14d4944432dc96419b1c35656c39107e05 (diff) | |
download | CMake-37ae7d6acf410157ade39f884845117438d5946a.zip CMake-37ae7d6acf410157ade39f884845117438d5946a.tar.gz CMake-37ae7d6acf410157ade39f884845117438d5946a.tar.bz2 |
ENH: Cleaned up format of generated makefiles. Consolidated rule generation into single WriteMakeRule method. Added special targets like rebuild_cache and edit_cache.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.h')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.h b/Source/cmLocalUnixMakefileGenerator2.h index 69f7c75..e0c45bf 100644 --- a/Source/cmLocalUnixMakefileGenerator2.h +++ b/Source/cmLocalUnixMakefileGenerator2.h @@ -57,7 +57,22 @@ protected: void GenerateTargetRuleFile(const cmTarget& target); void GenerateObjectRuleFile(const cmTarget& target, const cmSourceFile& source); + void WriteMakeRule(std::ostream& os, + const char* comment, + const char* preEcho, + const char* target, + const std::vector<std::string>& depends, + const std::vector<std::string>& commands, + const char* postEcho=0); + void WriteDivider(std::ostream& os); void WriteDisclaimer(std::ostream& os); + void WriteMakeVariables(std::ostream& makefileStream); + void WriteSpecialTargetsTop(std::ostream& makefileStream); + void WriteSpecialTargetsBottom(std::ostream& makefileStream); + void WriteTargetIncludes(std::ostream& makefileStream); + void WriteAllRule(std::ostream& makefileStream); + void WriteRequiresRule(std::ostream& ruleFileStream, const cmTarget& target, + const char* targetFullPath); void WriteExecutableRule(std::ostream& ruleFileStream, const char* ruleFileName, const cmTarget& target, |