Try using $SOURCES
, see Changing Variables :
builder = Builder( action='generate_output -o $TARGET -f $SOURCES', suffix='.out', src_suffix='.txt')
This works for me in this simple example:
env = Environment() builder = Builder(action='cat $SOURCES > $TARGET', suffix='.out', src_suffix='.txt') env = Environment(BUILDERS = {'MyBld' : builder}) env.MyBld('all', ['a.txt', 'b.txt', 'c.txt'])
This will work until generate_output
requires -f
precede each input file.
source share