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',
|
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')
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user