Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Add rule to calculate checksums of binaries #88

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

r2d4
Copy link
Contributor

@r2d4 r2d4 commented Sep 12, 2017

quick explanation of the rule

%.sha256: %
	shasum -a 256 $< &> $@

%.sha256: % matches anything with the suffix sha256 and has a dependency on building that target

shasum -a 256 $< &> $@

$< is the first dependency of the rule, in this case, the actual file we're taking the checksum of
&> redirects standard out
$@ is the name of the rule, which is the target file with the suffix .sha256

@aaron-prindle
Copy link
Collaborator

nit: You could put a comment in the makefile regarding the make variables used if you think it'll help someone trying to modify the rule

@r2d4 r2d4 merged commit be5e648 into GoogleContainerTools:master Sep 13, 2017
@r2d4 r2d4 deleted the calculate-checksums branch September 13, 2017 17:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants