wscript 516 B

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