1
0
forked from Rust/Core

build: Fix makefile

This commit is contained in:
Gleb Zaharov 2024-01-27 22:44:10 +03:00
parent 32b44dd339
commit 289d977ea8

View File

@ -5,22 +5,17 @@ RELEASE_FLAG = "--release"
alias = "all"
[tasks.all]
dependencies = ["objcopy"]
dependencies = ["build"]
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.build-1]
[tasks.build]
command = "cargo"
args = ["build", "@@remove-empty(RELEASE_FLAG)"]
[tasks.build]
[tasks.hwa]
command = "cargo"
args = ["build"]
[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"] }
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"] }