From 0e21b29cdea09dced57bfba027245a333609dba7 Mon Sep 17 00:00:00 2001 From: Michael DuBelko Date: Wed, 11 Mar 2026 10:21:33 -0700 Subject: [PATCH] fix: help formatting when running `make -f common.mk` Upstreamed from https://github.com/canonical/rockcraft/pull/1105. --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mk b/common.mk index c83625c0..dfc62461 100644 --- a/common.mk +++ b/common.mk @@ -37,7 +37,7 @@ export UV_FROZEN := true help: ## Show this help. @printf "\e[1m%-30s\e[0m | \e[1m%s\e[0m\n" "Target" "Description" printf "\e[2m%-30s + %-41s\e[0m\n" "------------------------------" "------------------------------------------------" - egrep '^[^:]+\: [^#]*##' $$(echo $(MAKEFILE_LIST) | tac --separator=' ') | sed -e 's/^[^:]*://' -e 's/:[^#]*/ /' | sort -V| awk -F '[: ]*' \ + egrep '^[^:]+\: [^#]*##' $$(echo $(MAKEFILE_LIST) | tac --separator=' ') | sed -e 's/:[^#]*/ /' | sort -V | awk -F '[: ]*' \ '{ if ($$2 == "##") {