From 2782bafcfdb69ef7b69a51a717a6bd35095e9369 Mon Sep 17 00:00:00 2001 From: Alex Scerba <alex@scerba.org> Date: Fri, 27 Sep 2024 18:56:29 -0400 Subject: Add base files --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3