aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..963a540
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+.DEFAULT_GOAL := run
+
+http_path := ./cmd/http
+bins := ./http
+
+fmt:
+ go fmt $(http_path)
+.PHONY:fmt
+
+lint: fmt
+ golint $(http_path)
+.PHONY:lint
+
+vet: lint
+ go vet $(http_path)
+.PHONY:vet
+
+run: vet
+ go run $(http_path)
+.PHONY:run
+
+build:
+ go build $(http_path)
+.PHONY:build
+
+clean:
+ rm -fv $(bins)
+.PHONY:clean