github.com/anchore/syft@v1.38.2/syft/pkg/cataloger/kernel/test-fixtures/Makefile (about) 1 FINGERPRINT_FILE=cache.fingerprint 2 3 4 .DEFAULT_GOAL := fixtures 5 6 # requirement 1: 'fixtures' goal to generate any and all test fixtures 7 fixtures: 8 @echo "nothing to do" 9 10 # requirement 2: 'fingerprint' goal to determine if the fixture input that indicates any existing cache should be busted 11 fingerprint: $(FINGERPRINT_FILE) 12 13 # requirement 3: we always need to recalculate the fingerprint based on source regardless of any existing fingerprint 14 .PHONY: $(FINGERPRINT_FILE) 15 $(FINGERPRINT_FILE): 16 @find Makefile **/Dockerfile -type f -exec sha256sum {} \; | sort -k2 > $(FINGERPRINT_FILE) 17 @#cat $(FINGERPRINT_FILE) | sha256sum | awk '{print $$1}' 18 19 # requirement 4: 'clean' goal to remove all generated test fixtures 20 clean: 21 rm -f $(FINGERPRINT_FILE)