aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Scerba <alex@scerba.org>2024-09-27 18:56:29 -0400
committerAlex Scerba <alex@scerba.org>2024-09-27 18:56:29 -0400
commit2782bafcfdb69ef7b69a51a717a6bd35095e9369 (patch)
tree32d69f68fe2dbc6b9cc5a5ac8ff970d79f348156 /Makefile
parent1208c2e7e7e79cfe122f8d5f38160a0611cc9dfe (diff)
Add base files
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