Skip to content

Commit

Permalink
fixed makefile
Browse files Browse the repository at this point in the history
Signed-off-by: rjtch <tchuinkoufongue@gmail.com>
  • Loading branch information
rjtch committed Jan 27, 2024
1 parent aa90c57 commit 5b7a2a2
Showing 1 changed file with 20 additions and 26 deletions.
46 changes: 20 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
build_docs:
cargo doc --locked --no-deps
build_examples:
cargo --locked build --examples
build:
cargo build --locked
build_release:
cargo --locked build --release
build_release_%:
cargo --locked build --release --package $*
build_%:
cargo build --locked --package $*
lint: lint_cargo_fmt_check lint_cargo_deny lint_cargo_clippy

check:
cargo check --locked
check_no_std:
cargo --version
cargo check --locked --target thumbv7em-none-eabihf -p ockam --no-default-features --features 'no_std alloc software_vault'
# no_std example project
cd examples/rust/example_projects/no_std
cargo check --example hello
check_cargo_update:
cargo --version
# TODO: uncomment when tauri version is updated
# rm -rf Cargo.lock
# cargo update
# cargo check --locked
lint_cargo_fmt_check:
cargo fmt --all -- --check

lint_cargo_deny:
cargo deny --all-features \
check licenses advisories \
--config=tools/cargo-deny/deny.toml

lint_cargo_clippy:
cargo clippy --no-deps --all-targets -- -D warnings

lint_cargo_toml_fmt_files:
dprint fmt --config=tools/dprint/dprint.json

lint_cargo_toml_check_files:
dprint check --config=tools/dprint/dprint.json

clean:
cargo clean

.PHONY:
check \
Expand Down

0 comments on commit 5b7a2a2

Please sign in to comment.