You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
374 B
Plaintext
14 lines
374 B
Plaintext
10 months ago
|
set shell := ["nu", "-c"]
|
||
|
|
||
|
default:
|
||
|
print "Select a command"
|
||
|
|
||
|
dev target +FLAGS="": (build target FLAGS)
|
||
|
if ('out/{{target}}' | path exists) { out/{{target}} } else { ^$"out/('{{target}}' | str replace -r '\.roc$' '')" }
|
||
|
|
||
|
build target +FLAGS="--optimize": init
|
||
|
roc build {{FLAGS}} ('{{target}}.roc' | str replace -r '\.roc\.roc$' '.roc') --output out/
|
||
|
|
||
|
init:
|
||
|
mkdir out/
|