diff options
Diffstat (limited to 'rules/archive.mk')
-rw-r--r-- | rules/archive.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rules/archive.mk b/rules/archive.mk index 82d46ab..6601862 100644 --- a/rules/archive.mk +++ b/rules/archive.mk @@ -59,6 +59,15 @@ unpack-%-stamp: validate-%-stamp unpack-stamp: $$(addprefix unpack-,$$(addsuffix -stamp,$$(archives) $$(archive))) + +checksum: + @echo '# Insert this into Makefile:' + @echo 'checksum := \' + @printf " md5:"; md5sum "$(archive)" | awk '{print $$1 " \\"}' + @printf " sha1:"; sha1sum "$(archive)" | awk '{print $$1 " \\"}' + @printf " sha256:"; sha256sum "$(archive)" | awk '{print $$1 " \\"}' + @printf " size:"; stat -c '%s' "$(archive)" + __archive_mk := included endif |