b8589db943da997ada372854e58de7fb9af78701
[senf.git] / senf / SConscript
1 # -*- python -*-
2
3 Import('env')
4 import SENFSCons, glob, 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(list(set(glob.glob("*/SConscript")) - set(("Ext/SConscript",))))
15 SConscript("Ext/SConscript")
16
17 env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = [ glob.glob("*.hh") ])