diff options
author | Rob Austein <sra@hactrn.net> | 2015-06-19 14:03:30 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-06-19 14:03:30 -0400 |
commit | a39aafced02d1c52760b3e948464a8041787d36f (patch) | |
tree | da81990b7a2d30c95d011f36047ee61f3e7e9c69 /GNUmakefile | |
parent | a18c0d41a606e8ff02f1457e9a0ac996132a2445 (diff) |
Search for sha256sum, use it if we found it, warn otherwise.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index cb10c3f..447589d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -9,6 +9,8 @@ BUILD := ${TOP}/build OUTPUT := ${BUILD}/sqlite3.h ${BUILD}/.libs/libsqlite3.a ${BUILD}/sqlite3 TARGETS := $(notdir ${OUTPUT}) +SHA256SUM := $(firstword $(wildcard /usr/local/bin/sha256sum /usr/local/bin/gsha256sum /usr/bin/sha256sum)) + all: ${TARGETS} clean: @@ -21,7 +23,11 @@ ${TARBALL}: wget ${URL} ${BUILD}/.build_done: ${TARBALL} GNUmakefile - sha256sum --check Checksums +ifeq "" "${SHA256SUM}" + @echo "Couldn't find sha256sum, not verifying distribution checksum" +else + ${SHA256SUM} --check Checksums +endif rm -rf ${BUILD} mkdir ${BUILD} cd ${BUILD}; tar -xf ${TARBALL} --strip-components=1 |