forked from nogibjj/rust-mlops-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 662 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
install:
# Install if needed
#@echo "Updating rust toolchain"
#rustup update stable
#rustup default stable
rust-version:
@echo "Rust command-line utility versions:"
rustc --version #rust compiler
cargo --version #rust package manager
rustfmt --version #rust code formatter
rustup --version #rust toolchain manager
clippy-driver --version #rust linter
format:
@echo "Formatting all projects with cargo"
./format.sh
lint:
@echo "Linting all projects with cargo"
@rustup component add clippy 2> /dev/null
./lint.sh
test:
@echo "Testing all projects with cargo"
./test.sh
check-gpu-linux:
sudo lshw -C display
all: format lint test