This commit is contained in:
Brad Nelson
2023-12-31 21:47:42 -08:00
parent db939fb889
commit b331d712d0
2 changed files with 6 additions and 4 deletions

View File

@ -17,4 +17,5 @@ Importation('gen/posix_boot.h', '$src/posix/posix_boot.fs', name='boot')
Compile('posix/ueforth', '$src/posix/main.c', Compile('posix/ueforth', '$src/posix/main.c',
implicit=['gen/posix_boot.h']) implicit=['gen/posix_boot.h'])
OneShot('install', 'sudo cp posix/ueforth /usr/bin/ueforth', 'posix/ueforth') OneShot('install', 'sudo cp posix/ueforth /usr/bin/ueforth',
'posix/ueforth', pool='console')

View File

@ -214,8 +214,7 @@ rule gen_run
rule oneshot rule oneshot
description = ONESHOT description = ONESHOT
command = $command command = echo oneshot
pool = console
rule clean rule clean
description = CLEAN description = CLEAN
@ -337,10 +336,12 @@ def GenRun(target, script, options, sources):
return target return target
def OneShot(target, command, source): def OneShot(target, command, source, pool=None):
global output global output
output += f'build {target}: oneshot {source}\n' output += f'build {target}: oneshot {source}\n'
output += f' command = {command}\n' output += f' command = {command}\n'
if pool:
output += f' pool = {pool}\n'
return target return target