-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc447ff
commit 0c98686
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |