]> git.codecow.com Git - Monocypher.git/commitdiff
Fix makefile rule when test/vectors.h is missing
authorMichael Forney <mforney@mforney.org>
Tue, 19 Nov 2019 20:41:02 +0000 (12:41 -0800)
committerMichael Forney <mforney@mforney.org>
Tue, 19 Nov 2019 20:41:05 +0000 (12:41 -0800)
`return` only works in functions, so when I run `make check` with no
tests/vectors.h, I get

return 1
make: return: Command not found
make: *** [makefile:189: tests/vectors.h] Error 127

While I guess this does the job, the right thing to do here is `exit 1`.

makefile

index bcf9f7e2148d09597dcf6e38100566cfb5dec918..39bb800a3df7248e87c32add44b238fad9a04779 100644 (file)
--- a/makefile
+++ b/makefile
@@ -186,7 +186,7 @@ tests/vectors.h:
        @echo " need libsodium."
        @echo "======================================================"
        @echo ""
-       return 1
+       exit 1
 
 dist: tests/vectors.h
        ./release.sh