-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile.toml
More file actions
55 lines (48 loc) · 1.46 KB
/
Makefile.toml
File metadata and controls
55 lines (48 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tasks.build-bin]
workspace = false
description = "Executa o script"
script = ["cargo build --release -p phlow-runtime"]
[tasks.packages]
workspace = false
description = "Empacota todos os módulos em ./modules"
script = ["chmod +x ./scripts/packages.sh", "./scripts/packages.sh"]
[tasks.env-build]
workspace = false
description = "Executa o container Docker phlow-environment"
script = [
"docker build --target environment -t phlow-env -f ./docker/Dockerfile .",
]
args = []
[tasks.env]
workspace = false
description = "Executa o container Docker phlow-environment"
script = ["docker run -it --rm -v .:/app phlow-env ${@}"]
[tasks.example]
workspace = false
description = "Executa cargo run -p phlow-runtime -- examples/ARG"
script = ["cargo run -p phlow-runtime -- examples/${@}"]
args = []
[tasks.all-local-packages]
workspace = false
description = "Executa ./scripts/local-packages.sh"
script = [
"chmod +x ./scripts/local-packages.sh",
"./scripts/local-packages.sh ${@}",
]
[tasks.local]
workspace = false
description = "Executa ./scripts/local-packages.sh ARG"
script = [
"chmod +x ./scripts/local-packages.sh",
"./scripts/local-packages.sh ${@}",
]
args = []
[tasks.install_local]
workspace = false
description = "Compila o phlow-runtime, remove o binário antigo e copia o novo para ~/.phlow/phlow"
script = [
"cargo build --release -p phlow-runtime",
"rm -f ~/.phlow/phlow",
"mkdir -p ~/.phlow",
"cp ./target/release/phlow ~/.phlow/phlow",
]