summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-12-12 19:00:17 +0300
committerGrail Finder <wohilas@gmail.com>2024-12-12 19:00:17 +0300
commit5a82ed727f38b8148b84b3a97f540e6bb3fcb2b2 (patch)
tree71f77b5efee9ca4d65853c5cc2eea78baff10522
parented5cb75134019a7ba063a13b5ff6f9cd296c80dd (diff)
Chore: makefile update
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 41d7962..ec1cfa7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,10 @@
+.PHONY: setconfig run lint
+
+run: setconfig
+ go build -o elefant && ./elefant
+
+setconfig:
+ find config.toml &>/dev/null || cp config.example.toml config.toml
+
lint: ## Run linters. Use make install-linters first.
golangci-lint run -c .golangci.yml ./...