libmedium/Makefile

43 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2021-10-31 15:12:26 +05:30
default: ## Debug build
cargo build
clean: ## Clean all build artifacts and dependencies
@cargo clean
2023-02-19 19:52:11 +05:30
check: ## Check for syntax errors on all workspaces
cargo check --workspace --tests --all-features
#cd utils/cache-bust && cargo check --tests --all-features
2021-10-31 15:12:26 +05:30
coverage: ## Generate HTML code coverage
2021-11-25 14:09:42 +05:30
./scripts/coverage.sh --coverage
2021-10-31 15:12:26 +05:30
dev-env: ## Download development dependencies
cargo fetch
doc: ## Prepare documentation
cargo doc --no-deps --workspace --all-features
docker: ## Build docker images
2021-10-31 22:55:47 +05:30
docker build -t realaravinth/libmedium:master -t realaravinth/libmedium:latest .
2021-10-31 15:12:26 +05:30
docker-publish: docker ## Build and publish docker images
2021-10-31 22:55:47 +05:30
docker push realaravinth/libmedium:master
docker push realaravinth/libmedium:latest
2021-10-31 15:12:26 +05:30
lint: ## Lint codebase
cargo fmt -v --all -- --emit files
cargo clippy --workspace --tests --all-features
release: ## Release build
cargo build --release
run: default ## Run debug build
cargo run
test: ## Run tests
cargo test --all-features --no-fail-fast
help: ## Prints help for targets with comments
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'