Fix up web.

This commit is contained in:
Brad Nelson
2023-12-31 16:35:59 -08:00
parent 9283b804e1
commit a7fbed4c8c
3 changed files with 35 additions and 2 deletions

View File

@ -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'