From: Michael Forney Date: Tue, 19 Nov 2019 20:41:02 +0000 (-0800) Subject: Fix makefile rule when test/vectors.h is missing X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=390e3329ca64d265f4c72ee35feb34f03f3eb79e;p=Monocypher.git Fix makefile rule when test/vectors.h is missing `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`. --- diff --git a/makefile b/makefile index bcf9f7e..39bb800 100644 --- 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