New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo make clean #526
Comments
Well, I am almost there 😉 . # ---- CLEAN----
[tasks.clean]
description = "Clean only Seed"
command = "cargo"
args = ["clean"]
[tasks.clean_pkg]
description = "Generic Clean command"
command = "cargo"
args = ["clean","--target-dir" ,"pkg"]
[tasks.clean_examples]
description = "Clean all examples pkg"
command = "cargo"
args = ["make", "for_each", "clean_pkg"]
[tasks.clean_all]
description = "Clean all artifact in seed and examples"
dependencies = ["clean", "clean_examples"]
The script breaks for project that are build with I guess I need to have a new code that differ from this in
Does somebody know how I could detect the folder |
The way I handle this is that I have a Makefile in each [tasks.clean]
description = "Clean"
dependencies = ["clean_client", "clean_server"]
[tasks.clean_client]
command = "cargo"
args = ["make", "--cwd", "client", "clean"]
[tasks.clean_server]
command = "cargo"
args = ["make", "--cwd", "server", "clean"] It might not be the most expandable method but it works for this pattern. Also you have dedicated Makefiles for each package. But I guess you can easily make this use your for_each script. |
Clean all build artifacts from the Seed and examples by
cargo make clean
.See
Makefile.toml
in the PR: #523.The text was updated successfully, but these errors were encountered: