build: Fix makefile
This commit is contained in:
parent
32b44dd339
commit
289d977ea8
@ -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"] }
|
|
||||||
|
Loading…
Reference in New Issue
Block a user