Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerthox committed Mar 29, 2024
1 parent 532f236 commit c5bc839
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,10 @@ end
"""
]

[tasks.build]
script = "cargo build --release"
clear = true

[tasks.build-demo]
script = "cargo build --release --features demo"

[tasks.build-dev]
script = "cargo build"

[tasks.copy]
[tasks.copy-release]
script = "cp \"${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/release/${CARGO_MAKE_CRATE_NAME}.dll\" \"${GW2_PATH}\""
script_runner = "@shell"

Expand All @@ -54,14 +47,14 @@ script = "rm \"${GW2_PATH}/${CARGO_MAKE_CRATE_NAME}.dll\""
script_runner = "@shell"

[tasks.install]
run_task = { name = ["build", "copy"] }
run_task = { name = ["build-release", "copy-release"] }

[tasks.uninstall]
alias = "remove"

[tasks.demo]
run_task = { name = ["build-demo", "copy"] }
run_task = { name = ["build-demo", "copy-release"] }

[tasks.dev]
run_task = { name = ["build-dev", "copy-debug"] }
run_task = { name = ["build", "copy-debug"] }
watch = true

0 comments on commit c5bc839

Please sign in to comment.