wscript 498 B

123456789101112131415161718192021222324252627
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy, 2006-2015 (ita)
  4. """
  5. See waflib/extras/stale.py for more information.
  6. Do not forget to reconfigure the project after changing "configure" below
  7. """
  8. VERSION='0.0.1'
  9. APPNAME='cc_test'
  10. top = '.'
  11. def options(opt):
  12. opt.load('compiler_c')
  13. def configure(conf):
  14. conf.load('compiler_c stale')
  15. def build(bld):
  16. import random
  17. if random.randint(0, 1):
  18. bld(rule='touch ${TGT}', target='foo.h')
  19. else:
  20. bld(rule='touch ${TGT}', target='bar.h')