summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ./...