github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/pkg/cataloger/binary/test-fixtures/Makefile (about) 1 .PHONY: default list download download-all cache.fingerprint 2 3 .DEFAULT_GOAL := default 4 5 default: download 6 7 list: ## list all managed binaries and snippets 8 go run ./manager list 9 10 download: ## download only binaries that are not covered by a snippet 11 go run ./manager download $(name) --skip-if-covered-by-snippet 12 13 download-all: ## download all managed binaries 14 go run ./manager download 15 16 add-snippet: ## add a new snippet from an existing binary 17 go run ./manager add-snippet 18 19 cache.fingerprint: ## prints the sha256sum of the any input to the download command (to determine if there is a cache miss) 20 @cat ./config.yaml | sha256sum | awk '{print $$1}' | tee cache.fingerprint 21 22 clean: ## clean up all downloaded binaries 23 rm -rf ./classifiers/bin 24 25 ## Halp! ################################# 26 27 .PHONY: help 28 help: 29 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "$(BOLD)$(CYAN)%-25s$(RESET)%s\n", $$1, $$2}'