12345678910111213141516171819202122232425262728293031323334 |
- #! /usr/bin/env python
- # encoding: utf-8
- # Justin Israel, 2017
- """
- Allow the "waf list" command to display descriptions for each target
- """
- top = '.'
- out = 'build'
- def configure(ctx):
- pass
- def build(bld):
- bld(
- rule="touch ${TGT}",
- target='file.in',
- description='Create the input file',
- )
- bld(
- rule='cp ${SRC} ${TGT}',
- source='file.in',
- target='file.out',
- description='Generate output file',
- )
- bld.install_files(
- 'dist',
- ['file.out'],
- name='install',
- description='Deploy files',
- )
|