Skip to content

Commit

Permalink
Adding help section to Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Apoorva Mahabaleshwara <apoorvambhat@gmail.com>
  • Loading branch information
apoorvam1 committed Oct 1, 2021
1 parent 3cc67df commit 9e92fb6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,20 @@ GOBIN := $(shell $(VGO) env GOPATH)/bin
LINT := $(GOBIN)/golangci-lint

all: build
build:
build: ## Builds all go code
cd ff && go build
install:
install: ## Installs the package
cd ff && go install

lint: ${LINT}
lint: ${LINT} ## Checks and reports lint errors
GOGC=20 $(LINT) run -v --timeout 5m

${LINT}:
$(VGO) install github.com/golangci/golangci-lint/cmd/golangci-lint@latest


help: ## Show this help
@echo 'usage: make [target] ...'
@echo ''
@echo 'targets:'
@egrep '^(.+)\:\ .*##\ (.+)' ${MAKEFILE_LIST} | sed 's/:.*##/#/' | column -t -c 2 -s '#'

0 comments on commit 9e92fb6

Please sign in to comment.