24 lines
573 B
Makefile
24 lines
573 B
Makefile
default: build
|
|
|
|
build:
|
|
cargo build --release
|
|
|
|
run:
|
|
cargo run -- --config /etc/kindexr/config.yaml
|
|
|
|
dev:
|
|
RUST_LOG=info cargo run -- --config kindexr.dev.yaml
|
|
|
|
test:
|
|
cargo test
|
|
|
|
check:
|
|
cargo fmt --check
|
|
cargo clippy -- -D warnings
|
|
|
|
install: build
|
|
install -Dm755 target/release/kindexr /usr/local/bin/kindexr
|
|
install -Dm755 target/release/kindexr-cli /usr/local/bin/kindexr-cli
|
|
install -Dm644 deploy/kindexr.service /etc/systemd/system/kindexr.service
|
|
install -Dm644 deploy/kindexr.example.yaml /etc/kindexr/config.yaml.example
|