PSCF v1.1
|
Class to construct makefile system for a set of source files. More...
Public Member Functions | |
def | __init__ (self, path='.', pathFromSrc='.', pathToSrc='.', parent=None, isTest=False) |
Constructor. More... | |
def | makeInclude (self, base) |
Make include line suitable for a makefile. More... | |
def | srcSuffix (self) |
Return suffix for source files: cpp or cc. More... | |
def | find (self) |
Find all header and source files in this directory. More... | |
Class to construct makefile system for a set of source files.
def pscfpp.make.MakeMaker.__init__ | ( | self, | |
path = '.' , |
|||
pathFromSrc = '.' , |
|||
pathToSrc = '.' , |
|||
parent = None , |
|||
isTest = False |
|||
) |
Constructor.
path | path from working directory |
pathFromSrc | path to working directory from src directory |
pathToSrc | path to src directory |
parent | parent MakeMaker object (for parent directory) |
isTest | boolean flag, perform dry run if true |
Definition at line 246 of file make.py.
References pscfpp.make.MakeMaker.defines, pscfpp.make.MakeMaker.dirList, pscfpp.make.MakeMaker.dirname, pscfpp.make.MakeMaker.dirparts, pscfpp.file.Directory.dirs, pscfpp.make.MakeMaker.dirs, pscfpp.make.MakeMaker.generation, pscfpp.make.MakeMaker.globalInclude, pscfpp.make.MakeMaker.hasLib, pscfpp.make.MakeMaker.isTest, pscfpp.text.RecordEditor.isTest, pscfpp.text.FileEditor.isTest, pscfpp.make.MakeMaker.libName, pscfpp.make.MakeMaker.libObjs, pscfpp.make.MakeMaker.linkObjs, pscfpp.make.MakeMaker.makePath(), pscfpp.make.MakeMaker.parent, TestRunner.parent(), pscfpp.file.File.path, pscfpp.file.Directory.path, pscfpp.make.MakeMaker.path, pscfpp.make.MakeMaker.pathFromSrc, pscfpp.make.MakeMaker.pathToSrc, pscfpp.text.readLabelledList(), and pscfpp.make.MakeMaker.root.
def pscfpp.make.MakeMaker.makeInclude | ( | self, | |
base | |||
) |
Make include line suitable for a makefile.
Definition at line 318 of file make.py.
References pscfpp.make.MakeMaker.pathFromSrc.
Referenced by pscfpp.make.MakeMaker.find().
def pscfpp.make.MakeMaker.srcSuffix | ( | self | ) |
Return suffix for source files: cpp or cc.
Definition at line 325 of file make.py.
References pscfpp.make.MakeMaker.isTest, pscfpp.text.RecordEditor.isTest, and pscfpp.text.FileEditor.isTest.
Referenced by pscfpp.make.MakeMaker.find().
def pscfpp.make.MakeMaker.find | ( | self | ) |
Find all header and source files in this directory.
Note: Does not recursively descend into subdirectories
Definition at line 332 of file make.py.
References pscfpp.make.MakeMaker.dirname, pscfpp.file.Directory.dirs, pscfpp.make.MakeMaker.dirs, Pscf::SymmetryGroup< SpaceSymmetry< D > >.find(), Pscf::SymmetryGroup< Symmetry >.find(), pscfpp.make.MakeMaker.find(), pscfpp.make.MakeMaker.generation, pscfpp.make.MakeMaker.globalInclude, pscfpp.make.MakeMaker.hasHdrs, pscfpp.make.MakeMaker.hasLib, pscfpp.make.MakeMaker.hasSrcs, pscfpp.make.MakeMaker.hdrs, pscfpp.make.MakeMaker.isTest, pscfpp.text.RecordEditor.isTest, pscfpp.text.FileEditor.isTest, pscfpp.make.MakeMaker.libName, pscfpp.make.MakeMaker.libObjs, pscfpp.make.MakeMaker.linkObjs, pscfpp.make.MakeMaker.makeInclude(), pscfpp.make.MakeMaker.makePath(), pscfpp.make.MakeMaker.makePathFromSrc(), pscfpp.file.open_w(), pscfpp.file.File.path, pscfpp.file.Directory.path, pscfpp.make.MakeMaker.path, pscfpp.make.MakeMaker.pathFromSrc, pscfpp.make.MakeMaker.pathToSrc, pscfpp.make.MakeMaker.srcs, and pscfpp.make.MakeMaker.srcSuffix().
Referenced by pscfpp.make.MakeMaker.find().