mirror of https://gitlab.com/ita1024/waf.git
docs
This commit is contained in:
parent
d5fcbdd5aa
commit
093f4f673e
|
@ -19,7 +19,8 @@ def configure(conf):
|
|||
conf.load('compiler_c')
|
||||
|
||||
def read_files(task):
|
||||
for x in task.generator.bld.bldnode.ant_glob('**'):
|
||||
# the real build files must be excluded, else they will get rebuilt
|
||||
for x in task.generator.bld.bldnode.ant_glob('**', excl='**/*.o app'):
|
||||
x.sig = Utils.h_file(x.abspath())
|
||||
|
||||
def build(bld):
|
||||
|
@ -27,7 +28,7 @@ def build(bld):
|
|||
|
||||
bld(rule='tar xvf ${SRC[0].abspath()}', source='foo.tar', cwd=bld.bldnode.abspath())
|
||||
bld.add_group()
|
||||
bld(rule=read_files, always=True)
|
||||
bld(rule=read_files, always=True, name='read_files')
|
||||
bld.add_group()
|
||||
bld.program(source='aa/main.c', target='app')
|
||||
|
||||
|
|
Loading…
Reference in New Issue