Fix up web.
This commit is contained in:
@ -208,6 +208,10 @@ rule copy
|
||||
description = COPY
|
||||
command = cp $in $out
|
||||
|
||||
rule gen_run
|
||||
description = GEN_RUN
|
||||
command = $script $options $infiles >$out
|
||||
|
||||
"""
|
||||
|
||||
|
||||
@ -312,6 +316,16 @@ def Copy(target, source):
|
||||
return target
|
||||
|
||||
|
||||
def GenRun(target, script, options, sources):
|
||||
sources = ' '.join(sources)
|
||||
global output
|
||||
output += f'build {target}: gen_run {script} {sources}\n'
|
||||
output += f' options = {options}\n'
|
||||
output += f' script = {script}\n'
|
||||
output += f' infiles = {sources}\n'
|
||||
return target
|
||||
|
||||
|
||||
def Default(target):
|
||||
global output
|
||||
output += f'default {target}\n'
|
||||
|
||||
Reference in New Issue
Block a user