summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-05-22 22:54:00 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-22 22:54:00 +0530
commit193331062655c4a0b79cf9433157ec8526c4b29f (patch)
tree608bfc116721cdc3d5b14a2fd47798a2ea77eba0 /Makefile.toml
parentd13fc7cafab760d3e69528a71c60e94785699709 (diff)
Allow passing arguments to test and build commands
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.toml b/Makefile.toml
index 6decb0de7..e798c34f0 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -24,7 +24,7 @@ env = { "SKIP_TEST" = true }
[tasks.test]
condition = { env_false = ["SKIP_TEST"] }
dependencies = ["pre-test"]
-args = ["test"]
+args = ["test", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
[tasks.post-test]
env = { "SKIP_TEST" = false }
@@ -39,10 +39,10 @@ run_task = "launch"
run_task = { name = "build", fork = true }
[tasks.build]
-args = ["build"]
+args = ["build", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
[tasks.build-release]
-args = ["build", "--release"]
+args = ["build", "--release", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
[tasks.build-dev-data-dir]
script_runner = "@duckscript"