src: attempt to make the hierachy more nice

This commit is contained in:
Kreyren 2020-01-12 12:50:51 +00:00
parent 82d0363a39
commit cef4c85314
3 changed files with 19 additions and 2 deletions

@ -1,2 +1,17 @@
all:
cargo run
@ printf '%s\n' "Unknown option parsed in target all" ; exit 2
run:
@ cargo run \
--jobs "$$(nproc)" \
--target-dir "target" \
--manifest-path="$$(pwd)/src/Cargo.toml"
build:
@ cargo build \
--jobs "$$(nproc)" \
--target-dir "target" \
--manifest-path="$$(pwd)/src/Cargo.toml"
release:
@ printf '%s\n' "FIXME: Release logic needed" ; exit 1

@ -4,7 +4,9 @@ version = "0.1.0"
authors = ["Kreyren <KostWarCZE@RiXotStudio.cz>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "main-bin"
path = "main.rs"
[dependencies]
clap = "*"