Implement partial BUILDDIR support
[senf.git] / senf / SConscript
1 # -*- python -*-
2
3 Import('env')
4 import SENFSCons, os
5
6 ###########################################################################
7
8 # Create local_config.h
9 if not env.GetOption('clean') and not os.path.exists("local_config.hh"):
10     Execute(Touch("local_config.hh"))
11
12 # Ext/SConscript is last so it can depend on env vars set by any other script
13 # (e.g. $PACKET_BUNDLES)
14 SConscript(sorted(list(set(env.Glob("*/SConscript", strings=True)) - set(("Ext/SConscript",)))))
15 SConscript("Ext/SConscript")
16
17 env.InstallSubdir(target = '$INCLUDEINSTALLDIR', 
18                   source = sorted(env.Glob("*.hh", strings=True)))