You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
516 B
Python
35 lines
516 B
Python
#! /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',
|
|
)
|