From b26b8fc96f8adb46140c92c987e4969711d75f3c Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Tue, 1 Oct 2024 17:24:00 -0700 Subject: [PATCH] add Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e9838b4 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +# default task since it's first +.PHONY: all +all: build test + +BINARY = importas +$(BINARY): *.go go.mod go.sum + go build -o $(BINARY) + +.PHONY: build +build: $(BINARY) ## Build binary + +.PHONY: test +test: build ## Unit test + go test -v ./... + +install: ## Install binary + go install