dep = string.join(deps + [bake], ' ')
add(bake, makedirs, 'Makefile.in', dep, 'autoconf', args)
+ add(bake, makedirs, 'makefile.bcc', dep, 'borland', args)
# main makefile:
addMakefile('wx.bkl', {'all':'..','autoconf':'../..'},
['common.bkl', 'config.bkl', 'files.bkl', 'monolithic.bkl',
- 'wxwin.py'])
+ 'multilib.bkl', 'wxwin.py'])
# samples main makefile:
addMakefile('../../samples/samples.bkl', {'all':'../../samples'})
-def onSample(arg, dirname, names):
+CONTRIB_DIR = 1
+
+def onSubmakefile(type, dirname, names):
bakes = [x for x in names if x.endswith('.bkl')]
if len(bakes) == 0: return
depth = dirname.count('/') - 2
prefix = ''.join(['../' for i in range(0,depth)])
args = {
- 'all':'-DWXTOPDIR=/%s..' % prefix,
+ 'all':'-DWXTOPDIR=%s../' % prefix,
'autoconf':'-DAUTOCONF_MACROS_FILE=../../autoconf_inc.m4',
}
for bake in bakes:
- addMakefile('%s/%s' % (dirname, bake), {'all':dirname},
- deps=['common.bkl','common_samples.bkl','config.bkl'],
+ if type==CONTRIB_DIR:
+ acdir = '../../contrib/src/%s' % dirname.split('/')[-1]
+ ruledep = 'common_contrib.bkl'
+ else:
+ acdir = dirname
+ ruledep = 'common_samples.bkl'
+ addMakefile('%s/%s' % (dirname, bake),
+ {'all':dirname,'autoconf':acdir},
+ deps=['common.bkl',ruledep,'config.bkl'],
args=args)
-os.path.walk('../../samples', onSample, None)
+os.path.walk('../../samples', onSubmakefile, None)
+os.path.walk('../../contrib/build', onSubmakefile, CONTRIB_DIR)
cleanCmds = ''