PSCF v1.3
pscfpp.make.MakeMaker Class Reference

Class to construct makefile system for a set of source files. More...

Public Member Functions

 __init__ (self, path='.', pathFromSrc='.', pathToSrc='.', parent=None, isTest=False)
 Constructor.
 makeInclude (self, base)
 Make include line suitable for a makefile.
 srcSuffix (self)
 Return suffix for source files: cpp or cc.
 find (self)
 Find all header and source files in this directory.

Detailed Description

Class to construct makefile system for a set of source files.

Definition at line 236 of file make.py.

Constructor & Destructor Documentation

◆ __init__()

pscfpp.make.MakeMaker.__init__ ( self,
path = '.',
pathFromSrc = '.',
pathToSrc = '.',
parent = None,
isTest = False )

Constructor.

Parameters
pathpath from working directory
pathFromSrcpath to working directory from src directory
pathToSrcpath to src directory
parentparent MakeMaker object (for parent directory)
isTestboolean flag, perform dry run if true

Definition at line 247 of file make.py.

References defines, dirList, dirname, dirparts, pscfpp.file.Directory.dirs, dirs, generation, globalInclude, hasLib, isTest, libName, libObjs, linkObjs, makePath(), parent, pscfpp.file.Directory.path, pscfpp.file.File.path, path, pathFromSrc, pathToSrc, pscfpp.text.readLabelledList(), and root.

Member Function Documentation

◆ makeInclude()

pscfpp.make.MakeMaker.makeInclude ( self,
base )

Make include line suitable for a makefile.

Definition at line 319 of file make.py.

References pathFromSrc.

Referenced by find().

◆ srcSuffix()

pscfpp.make.MakeMaker.srcSuffix ( self)

Return suffix for source files: cpp or cc.

Definition at line 326 of file make.py.

References isTest.

Referenced by find().

◆ find()

pscfpp.make.MakeMaker.find ( self)

Find all header and source files in this directory.

Note: Does not recursively descend into subdirectories

Definition at line 333 of file make.py.

References dirname, pscfpp.file.Directory.dirs, dirs, Pscf::Prdc::SymmetryGroup< Symmetry >.find(), find(), generation, globalInclude, hasHdrs, hasLib, hasSrcs, hdrs, isTest, libName, libObjs, linkObjs, makeInclude(), makePath(), makePathFromSrc(), pscfpp.file.open_w(), pscfpp.file.Directory.path, pscfpp.file.File.path, path, pathFromSrc, pathToSrc, srcs, and srcSuffix().

Referenced by find().


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