Files

59 lines
1.4 KiB
Makefile

.PHONY: help build release clean test run check fmt clippy install dist cross-windows cross-all
help:
@echo "RLogg - Available targets:"
@echo " make build - Build debug version"
@echo " make release - Build release version"
@echo " make dist - Build release for current platform"
@echo " make cross-windows - Cross-compile for Windows (requires Docker)"
@echo " make cross-all - Cross-compile for all platforms (requires Docker)"
@echo " make run - Run in development mode"
@echo " make test - Run tests"
@echo " make check - Check code without building"
@echo " make fmt - Format code"
@echo " make clippy - Run linter"
@echo " make clean - Clean build artifacts"
@echo " make install - Install binary to ~/.cargo/bin"
build:
cargo build
release:
cargo build --release
@echo "Binary built at: target/release/rlogg"
dist:
@echo "Building release binaries for all platforms..."
./build-release.sh
run:
cargo run
test:
cargo test
check:
cargo check
fmt:
cargo fmt
clippy:
cargo clippy -- -D warnings
clean:
cargo clean
rm -rf dist/
install: release
cargo install --path .
@echo "Installed to ~/.cargo/bin/rlogg"
cross-windows:
@echo "Cross-compiling for Windows..."
./cross-compile.sh windows
cross-all:
@echo "Cross-compiling for all platforms..."
./cross-compile.sh all