television/Makefile
Alexandre Pasmantier b757305d7a
refactor(picker): refactor picker logic and add tests to picker, cli, and events (#57)
* refactor(picker): refactor picker logic and add tests for picker, cli and events

* Update changelog

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-23 00:33:15 +01:00

61 lines
955 B
Makefile

default: build
setup:
@echo "Setting up $(NAME)"
@echo "Installing git hooks"
@mkdir -p .git/hooks
@echo "make fix" > .git/hooks/pre-commit
@chmod +x .git/hooks/pre-commit
@echo "Done"
clean:
@echo "Cleaning build dir"
@rm -rf target/*
@echo "Cleaning using cargo"
@cargo clean
check:
@echo "Checking $(NAME)"
@cargo check
release:
@echo "Building release: $(VERSION)"
@cargo build --release
build:
@echo "Building debug"
@cargo build
format:
@echo "Formatting $(NAME)"
@cargo fmt --all
lint:
@echo "Linting $(NAME)"
@cargo clippy
fix: format
@echo "Fixing $(NAME)"
@cargo fix --allow-staged --allow-dirty
@make lint
run:
@echo "Running debug"
@RUST_LOG=debug cargo run
test:
@echo "Testing $(NAME)"
@cargo test --all
bump-workspace:
@echo "Bumping workspace"
@./scripts/bump.sh
publish:
@echo "Publishing $(NAME)"
@./scripts/publish.sh
update-changelog:
@echo "Updating changelog"
@git cliff -o CHANGELOG.md