38
Makefile
38
Makefile
@ -1,42 +1,20 @@
|
||||
default: ## Debug build
|
||||
all:
|
||||
cargo build
|
||||
|
||||
clean: ## Clean all build artifacts and dependencies
|
||||
@cargo clean
|
||||
clean:
|
||||
cargo clean
|
||||
|
||||
check: ## Check for syntax errors on all workspaces
|
||||
check:
|
||||
cargo check --workspace --tests --all-features
|
||||
#cd utils/cache-bust && cargo check --tests --all-features
|
||||
|
||||
coverage: ## Generate HTML code coverage
|
||||
./scripts/coverage.sh --coverage
|
||||
|
||||
|
||||
dev-env: ## Download development dependencies
|
||||
cargo fetch
|
||||
|
||||
doc: ## Prepare documentation
|
||||
cargo doc --no-deps --workspace --all-features
|
||||
|
||||
docker: ## Build docker images
|
||||
docker build -t realaravinth/libmedium:master -t realaravinth/libmedium:latest .
|
||||
|
||||
docker-publish: docker ## Build and publish docker images
|
||||
docker push realaravinth/libmedium:master
|
||||
docker push realaravinth/libmedium:latest
|
||||
|
||||
lint: ## Lint codebase
|
||||
lint:
|
||||
cargo fmt -v --all -- --emit files
|
||||
cargo clippy --workspace --tests --all-features
|
||||
|
||||
release: ## Release build
|
||||
cargo build --release
|
||||
|
||||
run: default ## Run debug build
|
||||
run:
|
||||
cargo run
|
||||
|
||||
test: ## Run tests
|
||||
test:
|
||||
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}'
|
||||
.PHONY: clean check lint run test
|
||||
|
Reference in New Issue
Block a user