add digests target

This commit is contained in:
Lance Vick 2024-02-08 22:28:41 -08:00
parent 9456fbd7e8
commit 1520d4c6f9
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 13 additions and 3 deletions

View File

@ -17,12 +17,22 @@ include src/macros.mk
include src/packages.mk
include src/packages_manual.mk
compat:
./src/compat.sh
DEFAULT_GOAL := default
.PHONY: default
default: compat bootstrap core
.PHONY: compat
compat:
./src/compat.sh
.PHONY: digests
digests:
@for each in $$(find out -iname "index.json"| sort); do \
printf \
"%-20s | %-50s\n" \
"$$(basename $$(dirname $$each))" \
$$(cat $$each | jq -r '.manifests[].digest'); \
done
out/graph.svg: Makefile
$(MAKE) -Bnd | make2graph | dot -Tsvg -o graph.svg