GRADLE ?= ./gradlew .DEFAULT_GOAL := help .PHONY: help test lint format build check clean help: @echo 'Targets:' @echo ' test run the test suite' @echo ' lint ktlint, read-only' @echo ' format apply ktlint (writes)' @echo ' build assemble the jar and sources jar into build/libs/' @echo ' check lint + test + build, in that order' @echo ' clean remove build artefacts and caches' @echo @echo 'Override the build tool with e.g. make test GRADLE=gradle' test: $(GRADLE) test lint: $(GRADLE) ktlintCheck format: $(GRADLE) ktlintFormat build: $(GRADLE) assemble check: lint test build clean: $(GRADLE) clean rm -rf .gradle .kotlin build