cbp2make
Makefile generation tool for Code::Blocks IDE
Public Member Functions | Private Attributes | List of all members
CMakefileRule Class Reference

Makefile rule definition. More...

#include <makefile.h>

Public Member Functions

CStringTarget (void)
 Name of a makefile target. More...
 
CStringListDependencies (void)
 A list of dependencies (prerequirements) for the target. More...
 
CStringListCommands (void)
 A list of commands to be executed to build the target. More...
 
bool & Multiline (void)
 Allows line-wrapping of the list of dependencies. More...
 
CString JoinDependencies (void)
 Returns dependencies as a single string. More...
 
void Clear (void)
 Resets the makefile rule to the initial state. More...
 
void Show (void)
 Prints the makefile rule properties to the standard output. More...
 
 CMakefileRule (void)
 Creates makefile rule. More...
 
 ~CMakefileRule (void)
 Destroys makefile rule. More...
 

Private Attributes

CString m_Target
 Name of a makefile target. More...
 
CStringList m_Dependencies
 A list of dependencies (prerequirements) for the target. More...
 
CStringList m_Commands
 A list of commands to be executed to build the target. More...
 
bool m_Multiline
 Allows line-wrapping of the list of dependencies. More...
 

Detailed Description

Makefile rule definition.

Manages makefile rule properties and generates its text representation.

Constructor & Destructor Documentation

◆ CMakefileRule()

CMakefileRule::CMakefileRule ( void  )

Creates makefile rule.

◆ ~CMakefileRule()

CMakefileRule::~CMakefileRule ( void  )

Destroys makefile rule.

Member Function Documentation

◆ Clear()

void CMakefileRule::Clear ( void  )

Resets the makefile rule to the initial state.

◆ Commands()

CMakefileRule::Commands ( void  )
inline

A list of commands to be executed to build the target.

Returns
reference to CMakefileRule::m_Commands.

◆ Dependencies()

CMakefileRule::Dependencies ( void  )
inline

A list of dependencies (prerequirements) for the target.

Returns
reference to CMakefileRule::m_Dependencies.

◆ JoinDependencies()

CString CMakefileRule::JoinDependencies ( void  )

Returns dependencies as a single string.

Returns
concatenation of CMakefileRule::m_Dependencies strings.

Strings of CMakefileRule::m_Dependencies are joined with space character if multiline mode is disabled or with ' \\\n\t' (space backslash eol tab) sequence otherwise.

◆ Multiline()

CMakefileRule::Multiline ( void  )
inline

Allows line-wrapping of the list of dependencies.

Returns
reference to CMakefileRule::m_Multiline.

◆ Show()

void CMakefileRule::Show ( void  )

Prints the makefile rule properties to the standard output.

◆ Target()

CMakefileRule::Target ( void  )
inline

Name of a makefile target.

Returns
reference to CMakefileRule::m_Target.

Member Data Documentation

◆ m_Commands

CMakefileRule::m_Commands
private

A list of commands to be executed to build the target.

◆ m_Dependencies

CMakefileRule::m_Dependencies
private

A list of dependencies (prerequirements) for the target.

Dependencies should be names of other makefile targets or file names.

◆ m_Multiline

CMakefileRule::m_Multiline
private

Allows line-wrapping of the list of dependencies.

◆ m_Target

CMakefileRule::m_Target
private

Name of a makefile target.


The documentation for this class was generated from the following files: