Commit d2498e0

mo khan <mo@mokhan.ca>
2025-04-17 16:38:54
chore: add Makefile and specify the version of golang to use
1 parent 09147e0
.tool-versions
@@ -0,0 +1,1 @@
+golang 1.18
Makefile
@@ -0,0 +1,20 @@
+.PHONY: clean setup build test
+
+syslogs:
+	@go build -o syslogs ./cmd/syslogs/main.go
+
+which:
+	@go build -o which ./cmd/which/main.go
+
+clean:
+	@rm -f syslogs which
+
+setup:
+	@mise install
+	@go install tool
+
+build: syslogs which
+
+test:
+	@go clean -testcache
+	@go test -shuffle=on ./...