aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-01-24 16:15:35 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2026-01-24 16:15:35 +0100
commit975158b1a2c6a1fbd79b93c6ee1aae127b8672c1 (patch)
tree159121251f9226aafa3a4c0318b211b64fe8469d /Makefile
downloadticket-counter-975158b1a2c6a1fbd79b93c6ee1aae127b8672c1.tar.gz
ticket-counter-975158b1a2c6a1fbd79b93c6ee1aae127b8672c1.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3fe84b0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+ticket-counter: main.go index.html
+ go build
+
+ticket-counter.exe: main.go index.html
+ GOOS=windows GOARCH=386 go build -o $@
+
+.PHONY: native
+native: ticket-counter
+
+.PHONY: windows
+windows: ticket-counter.exe
+
+.PHONY: clean
+clean:
+ rm -f ticket-counter ticket-counter.exe
+
+.PHONY: check
+check:
+ golangci-lint run
+
+.PHONY: fmt
+fmt:
+ go fmt