I'm using waf
as the build system for my project and I need to execute two consecutive shell commands during build process, in which output file from first command should be given as an input file at command-line to second command. According to waf book, general template for executing OS commands looks like this:
bld(rule='cp ${SRC} ${TGT}', source='input.txt', target='output.txt')
Using this template, the target directory will be automatically prepended to target file. But it's not clear how to refer to that file as an input file in later commands.
Linux OS, Python version 2.7, waf version 1.8.9
How can this be done?