# Makefile for dbwarrior CLI tool

APP_NAME := dbwarrior
CONFIG := config.toml

.PHONY: build run test fmt lint clean install package publish watch

build:
	cargo build --release

run:
	./target/release/$(APP_NAME) --config $(CONFIG)

test:
	cargo test

fmt:
	cargo fmt --all

lint:
	cargo clippy -- -D warnings

clean:
	cargo clean

install:
	cargo install --path .

package:
	cargo package

publish:
	cargo publish

watch:
	cargo install cargo-watch || true
	cargo watch -x "check"
