photojawn/Makefile
Nick Pegg 9945b9eb7f
Some checks are pending
Rust / build (push) Waiting to run
Rewrite in Rust (#3)
Just what the world needs, another silly Rust re-write! But it was a good exercise in learning.

There's a lot of messy things, which is why this is 0.2.0-pre.1. Going to make some cleaning passes after landing this.
2025-05-08 12:27:49 -07:00

47 lines
912 B
Makefile

# Default, which is handy to run before committing code
all: fmt lint test
# What to have CI systems run
ci: lint test
# Final pre-flight checks then deploy everywhere!
# TODO
# shipit: all build staging prod
# version := $(shell yq -p toml .tool.poetry.version < pyproject.toml)
# init:
# poetry install
# Everything to get the dev env set up
# dev: init
fmt:
cargo fmt
lint:
cargo clippy
test:
RUST_BACKTRACE=1 cargo test
test-watch:
find . -name '*rs' -or -name '*html' -or -name Cargo.lock | entr -r -c make test
clean:
cargo clean
# TODO?
# docker:
# podman build -t nickpegg/photojawn . --build-arg GIT_COMMIT=$(shell git rev-parse --short HEAD)
dist:
cargo build --release
# TODO
# release: dist
# git push --tags
# gh release create --verify-tag v$(version)
# gh release upload v$(version) dist/photojawn-$(version)-*whl $(foreach plat,$(scie_platforms),dist/photojawn-$(plat))