wscript (516B)
1 #! /usr/bin/env python 2 # encoding: utf-8 3 # Justin Israel, 2017 4 5 """ 6 Allow the "waf list" command to display descriptions for each target 7 """ 8 9 top = '.' 10 out = 'build' 11 12 def configure(ctx): 13 pass 14 15 def build(bld): 16 bld( 17 rule="touch ${TGT}", 18 target='file.in', 19 description='Create the input file', 20 ) 21 22 bld( 23 rule='cp ${SRC} ${TGT}', 24 source='file.in', 25 target='file.out', 26 description='Generate output file', 27 ) 28 29 bld.install_files( 30 'dist', 31 ['file.out'], 32 name='install', 33 description='Deploy files', 34 )