summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMurilo Ijanc <[email protected]>2026-07-26 12:19:13 -0300
committerMurilo Ijanc <[email protected]>2026-07-26 12:19:13 -0300
commit0757164507a1f9be8b9f61292a9069759f1da034 (patch)
treee958ba14c7f6a6ae3cdabe1ed0cd5f69b530edb7 /Makefile
downloadkotlin-b58fa7db4ef21c32b83743c597de17528d43a3cd.tar.gz
Initial importv0.1.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
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