PSCF v1.2
|
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. | |
Class to construct makefile system for a set of source files.
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 247 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.FileEditor.isTest, pscfpp.text.RecordEditor.isTest, pscfpp.make.MakeMaker.libName, pscfpp.make.MakeMaker.libObjs, pscfpp.make.MakeMaker.linkObjs, pscfpp.make.MakeMaker.makePath(), pscfpp.make.MakeMaker.parent, TestRunner.parent(), Pscf::PolymerSpecies.path(), Pscf::PolymerTmpl< Block >.path(), Pscf::PolymerTmpl< Block< D > >.path(), pscfpp.file.Directory.path, pscfpp.file.File.path, pscfpp.make.MakeMaker.path, pscfpp.make.MakeMaker.pathFromSrc, pscfpp.make.MakeMaker.pathToSrc, pscfpp.text.readLabelledList(), and pscfpp.make.MakeMaker.root.
pscfpp.make.MakeMaker.makeInclude | ( | self, | |
base ) |
Make include line suitable for a makefile.
Definition at line 319 of file make.py.
References pscfpp.make.MakeMaker.pathFromSrc.
Referenced by pscfpp.make.MakeMaker.find().
pscfpp.make.MakeMaker.srcSuffix | ( | self | ) |
Return suffix for source files: cpp or cc.
Definition at line 326 of file make.py.
References pscfpp.make.MakeMaker.isTest, pscfpp.text.FileEditor.isTest, and pscfpp.text.RecordEditor.isTest.
Referenced by pscfpp.make.MakeMaker.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 pscfpp.make.MakeMaker.dirname, pscfpp.file.Directory.dirs, pscfpp.make.MakeMaker.dirs, Pscf::Prdc::SymmetryGroup< Symmetry >.find(), Pscf::Prdc::SymmetryGroup< SpaceSymmetry< D > >.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.FileEditor.isTest, pscfpp.text.RecordEditor.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(), Pscf::PolymerSpecies.path(), Pscf::PolymerTmpl< Block >.path(), Pscf::PolymerTmpl< Block< D > >.path(), pscfpp.file.Directory.path, pscfpp.file.File.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().