From 0757164507a1f9be8b9f61292a9069759f1da034 Mon Sep 17 00:00:00 2001 From: Murilo Ijanc Date: Sun, 26 Jul 2026 12:19:13 -0300 Subject: Initial import --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d28fbc1 --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +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 -- cgit v1.3