2011-09-10 11:13:51 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
2015-01-01 16:24:54 +01:00
|
|
|
# Thomas Nagy, 2006-2015 (ita)
|
2011-09-10 11:13:51 +02:00
|
|
|
|
|
|
|
"""
|
2014-10-25 01:57:13 +02:00
|
|
|
See waflib/extras/stale.py for more information.
|
2018-03-05 06:16:04 +01:00
|
|
|
Do not forget to reconfigure the project after changing "configure" below
|
2011-09-10 11:13:51 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
VERSION='0.0.1'
|
|
|
|
APPNAME='cc_test'
|
|
|
|
|
|
|
|
top = '.'
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
opt.load('compiler_c')
|
|
|
|
|
|
|
|
def configure(conf):
|
2014-10-25 01:57:13 +02:00
|
|
|
conf.load('compiler_c stale')
|
2011-09-10 11:13:51 +02:00
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
import random
|
|
|
|
if random.randint(0, 1):
|
|
|
|
bld(rule='touch ${TGT}', target='foo.h')
|
|
|
|
else:
|
|
|
|
bld(rule='touch ${TGT}', target='bar.h')
|
|
|
|
|