TEST_EXTRA_LIBS = [ ],
PREFIX = '/usr/local',
- LIBINSTALLDIR = '$PREFIX/lib',
- BININSTALLDIR = '$PREFIX/bin',
- INCLUDEINSTALLDIR = '$PREFIX/include',
+ LIBINSTALLDIR = '$PREFIX',
+ BININSTALLDIR = '$PREFIX',
+ INCLUDEINSTALLDIR = '$PREFIX',
OBJINSTALLDIR = '$LIBINSTALLDIR',
- DOCINSTALLDIR = '$PREFIX/doc',
+ DOCINSTALLDIR = '$PREFIX/docs',
CPP_INCLUDE_EXTENSIONS = [ '.h', '.hh', '.ih', '.mpp', '.cci', '.ct', '.cti' ],
CPP_EXCLUDE_EXTENSIONS = [ '.test.hh' ],
# Load SConscripts
SConscript("debian/SConscript")
-SConscript("doclib/SConscript")
if os.path.exists('SConscript.local') : SConscript('SConscript.local')
-
SConscript("senf/SConscript")
-
SConscript("Examples/SConscript")
SConscript("HowTos/SConscript")
+SConscript("doclib/SConscript")
###########################################################################
# Define build targets
for path, subdirs, files in os.walk('.')
for pattern in env['CLEAN_PATTERNS']
for f in fnmatch.filter(files,pattern) ])
+ env.Clean('all', '.')
if not env.GetOption('clean') and not os.path.exists(".prepare-stamp"):
Execute(Touch(".prepare-stamp"))
}
?>"""
-env.Append( ENV = {
- 'TODAY' : str(datetime.date.today()),
- 'TEXINPUTS' : os.environ.get('TEXINPUTS',env.Dir('#/doclib').abspath + ':'),
- 'DOXYGEN' : env.get('DOXYGEN', 'doxygen'),
-})
+env.SetDefault(
+ DOXYGEN = "doxygen"
+)
env.Replace(
- ALL_TAGFILES = [],
DOXYGENCOM = "doclib/doxygen.sh $DOXYOPTS $SOURCE",
)
+env.Append( ENV = {
+ 'TODAY' : str(datetime.date.today()),
+ 'TEXINPUTS' : os.environ.get('TEXINPUTS',env.Dir('#/doclib').abspath + ':'),
+ 'DOXYGEN' : env.File(env['DOXYGEN']).abspath,
+})
+
env.PhonyTarget('linklint', [], [
'rm -rf linklint',
'linklint -doc linklint -limit 99999999 `find -type d -name html -printf "/%P/@ "`',
SConscript(list(set(glob.glob("*/SConscript")) - set(("Ext/SConscript",))))
SConscript("Ext/SConscript")
-env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = [ 'config.hh' ])
+env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = [ 'config.hh', 'local_config.hh' ])
'html' : 'NO',
'generate_tagfile': 'doc/${MODULE}.tag' },
MODULE = module )
- env.Append(ALL_TAGFILES = tagfile[0].abspath)
+ env.Append(ALL_TAGFILES = [ tagfile[0].abspath ])
env.Depends(tagfile, [ env.File('#/doclib/doxygen.sh'),
env.File('#/doclib/tag-munge.xsl') ])
env.Depends(doc, env.CopyToDir(doc[0].dir, extra_sources))
# Install documentation into DOCINSTALLDIR
- l = len(env.Dir('#').abspath)
- env.Install(env.Dir('$DOCINSTALLDIR').Dir(doc[0].dir.get_path('#')), doc[0].dir)
+ env.Install(env.Dir('$DOCINSTALLDIR').Dir(doc[0].dir.dir.get_path(env.Dir('#'))), doc[0].dir)
# Useful aliases
env.Alias('all_docs', doc)
# The following functions serve as simple macros for most SConscript files
#
# If you need to customize these rules, copy-and-paste the code into the
-# SConscript file and adjust at will (don't to forget to replace the
+# SConscript file and adjust at will (don't forget to replace the
# parameters with their actual value. Parameters are marked with ((name)) )
def AutoRules(env, exclude=[], subdirs=[], doc_extra_sources = []):
subscripts = glob.glob("*/SConscript")
objects = env.Object(sources)
- cobject = env.CombinedObject(name, objects)
+ cobject = env.CombinedObject('${LOCALLIBDIR}/${NAME}', objects, NAME=((name)))
env.Default(cobject)
env.Append(ALLOBJECTS = objects, PACKET_BUNDLES = cobject)