Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfrench committed Dec 31, 2022
1 parent f68e4b1 commit c9646ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/
out/
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

build: build/inflate build/deflate ## Builds all executables.

build/inflate: ## Builds the inflate executable.
go build -o out/inflate cmd/inflate/main.go

build/deflate: ## Builds the deflate executable.
go build -o out/deflate cmd/deflate/main.go

.PHONY: test
test: ## Runs tests.
go test -race ./...

.PHONY: help
help: ## Prints Makefile help text.
@grep -E '^[a-zA-Z_\/-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.DEFAULT_GOAL := help

0 comments on commit c9646ac

Please sign in to comment.