Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored and julz committed Oct 16, 2024
1 parent 8073a86 commit b26b8fc
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 b26b8fc

Please # to comment.