Skip to content

Commit 5c3cbc9

Browse files
committed
Final help output
1 parent 232d044 commit 5c3cbc9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ info: ; $(info $(M) Runtime info...)
6868
@echo "ALT_ARCH: $(ALT_ARCH)"
6969

7070
.PHONY:
71-
help:
72-
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
71+
help: ## Display this help
72+
@perl -lne 'if (/^([\$$a-z][^:]+):(([^:]+):)?/) { if ($$3) {$$name = $$3} else {$$name = $$1} }; if ($$name && / ## (.+)$$/) { printf "%s: \033[36m%-30s\033[0m%s\n", $$name, $$1; $$name = "" }' $(MAKEFILE_LIST)
7373
@echo
7474
@echo "Reminder: foo-% => \$$@=foo-bar \$$*=bar"
7575
@echo

make/ghcr.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ ghcr-private: \
148148
| column --separator ";" --table --table-columns Name,Url
149149

150150
.PHONY:
151-
$(addsuffix --ghcr-private,$(ALL_TOOLS_RAW)): \
151+
$(addsuffix --ghcr-private,$(ALL_TOOLS_RAW)):%--ghcr-private: \
152152
$(HELPER)/var/lib/uniget/manifests/gh.json \
153153
$(HELPER)/var/lib/uniget/manifests/gojq.json \
154154
; $(info $(M) Testing that $* is publicly visible...) ## ???

make/sbom.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sbom: \
3535

3636
.PHONY:
3737
$(addsuffix --sbom,$(ALL_TOOLS_RAW)):%--sbom: \
38-
$(TOOLS_DIR)/%/sbom.json
38+
$(TOOLS_DIR)/%/sbom.json ## ???
3939

4040
$(addsuffix /sbom.json,$(ALL_TOOLS)):$(TOOLS_DIR)/%/sbom.json: \
4141
$(HELPER)/var/lib/uniget/manifests/gojq.json \
@@ -120,7 +120,7 @@ attest: \
120120
$(addsuffix --scan,$(ALL_TOOLS_RAW)):%--scan: \
121121
$(HELPER)/var/lib/uniget/manifests/grype.json \
122122
$(TOOLS_DIR)/%/sbom.json \
123-
; $(info $(M) Scanning sbom for $*...)
123+
; $(info $(M) Scanning sbom for $*...) ## ???
124124
@set -o errexit; \
125125
grype sbom:$(TOOLS_DIR)/$*/sbom.json --quiet --add-cpes-if-none --output table
126126

0 commit comments

Comments
 (0)