summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..07d33df
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+PREFIX?=/usr/local
+OUTPUT?=bin/workctl
+
+all: build
+
+install: build
+ install -m755 $(OUTPUT) $(PREFIX)/bin/workctl
+
+build:
+ go build -v -o $(OUTPUT) .
+
+test:
+ go test -v ./...
+
+run:
+ go run -v .
+
+tiny:
+ tinygo build .