Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Oct 2, 2024
1 parent b8654f9 commit 870cf7e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 870cf7e

Please # to comment.