Tweak.
This commit is contained in:
@ -17,4 +17,5 @@ Importation('gen/posix_boot.h', '$src/posix/posix_boot.fs', name='boot')
|
||||
Compile('posix/ueforth', '$src/posix/main.c',
|
||||
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')
|
||||
|
||||
@ -214,8 +214,7 @@ rule gen_run
|
||||
|
||||
rule oneshot
|
||||
description = ONESHOT
|
||||
command = $command
|
||||
pool = console
|
||||
command = echo oneshot
|
||||
|
||||
rule clean
|
||||
description = CLEAN
|
||||
@ -337,10 +336,12 @@ def GenRun(target, script, options, sources):
|
||||
return target
|
||||
|
||||
|
||||
def OneShot(target, command, source):
|
||||
def OneShot(target, command, source, pool=None):
|
||||
global output
|
||||
output += f'build {target}: oneshot {source}\n'
|
||||
output += f' command = {command}\n'
|
||||
if pool:
|
||||
output += f' pool = {pool}\n'
|
||||
return target
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user