aboutsummaryrefslogtreecommitdiff
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..11c8a36
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+.PHONY: build run test vet clean
+
+BINARY=tc
+DATA_DIR=$(PWD)/data
+
+build:
+ go build -o $(BINARY) ./cmd/mud
+
+run: build
+ DATA_DIR=$(DATA_DIR) ./$(BINARY)
+
+test:
+ DATA_DIR=$(DATA_DIR) go test ./... -timeout 60s
+
+vet:
+ go vet ./...
+
+clean:
+ rm -f $(BINARY)