aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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