Skip to content

Commit

Permalink
align description column to heading
Browse files Browse the repository at this point in the history
Before:

  Command         Description
  -------         -----------
  build            Builds all binaries to BUILD_DIR/{linux,darwin,windows}

After:

  Command         Description
  -------         -----------
  build           Builds all binaries to BUILD_DIR/{linux,darwin,windows}
  • Loading branch information
yelsaw committed Sep 14, 2024
1 parent 07c8f83 commit a847dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ GO_LDFLAGS = "-s -extldflags=-static"

help:
@echo ""
@grep -E '^[a-zA-Z_-]+:.*#' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*#"; printf " %-15s %s\n", "Command", "Description"; printf " %-15s %s\n", "-------", "-----------"} {printf " %-15s %s\n", $$1, $$2}'
@grep -E '^[sa-zA-Z_-]+:.*#' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*# "; printf " %-15s %s\n", "Command", "Description"; printf " %-15s %s\n", "-------", "-----------"} {printf " %-15s %s\n", $$1, $$2}'
@echo ""

build: clean $(OS_BUILDS) # Builds all binaries to BUILD_DIR/{linux,darwin,windows}
Expand Down

0 comments on commit a847dd2

Please sign in to comment.