Skip to content

Commit

Permalink
feat: help support
Browse files Browse the repository at this point in the history
  • Loading branch information
waldirborbajr committed Feb 28, 2024
1 parent bc447ff commit 0c98686
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
build-dev:
help: ## 💬 This help message :)
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

build-dev: ## 🔨 Build development binaries for Linux
go mod tidy
GOOS=linux go build -o bin/glink -debug-trace=tmp/trace.json main.go

build:
build: ## 🔨 Build binaries for Linux
go mod tidy
GOOS=linux go build -o bin/glink -ldflags="-s -w" main.go

clean: ## ♻️ Clean up
@rm -rf bin

lint-fix: ## 🔍 Lint & format, will try to fix errors and modify code
golangci-lint run --modules-download-mode=mod *.go --fix

install:
install: ## Install into GOBIN directory
go install ./...

test:
test: ## 📝 Run all tests
go test ./...

layout:
layout: ## 💻 Run Zellij with a layout
zellij --layout go-layout.kdl

0 comments on commit 0c98686

Please sign in to comment.