build: Fix makefile

This commit is contained in:
Sweetbread committed 2024-01-31 16:31:47 +03:00
1 parent 32b44dd339
commit 289d977ea8
1 file changed
+5 -10
+5 -10
View File
@@ -5,22 +5,17 @@ RELEASE_FLAG = "--release"
alias = "all" alias = "all"
[tasks.all] [tasks.all]
dependencies = ["objcopy"] dependencies = ["build"]
[tasks.clean] [tasks.clean]
command = "cargo" command = "cargo"
args = ["clean"] args = ["clean"]
[tasks.build-1] [tasks.build]
command = "cargo" command = "cargo"
args = ["build", "@@remove-empty(RELEASE_FLAG)"] args = ["build", "@@remove-empty(RELEASE_FLAG)"]
[tasks.build] [tasks.hwa]
command = "cargo" command = "cargo"
args = ["build"] args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--example", "hwa", "--", "-O", "binary", "--strip-all", "rust.kex"]
#install_crate = { crate_name = "cargo-binutils", binary = "rust-objcopy", test_arg = ["--help"] }
[tasks.objcopy]
command = "cargo"
args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--", "-O binary", "--strip-all"]
dependencies = ["build-1"]
install_crate = { crate_name = "cargo-binutils", binary = "rust-objcopy", test_arg = ["--help"] }