diff options
author | Rob Austein <sra@hactrn.net> | 2016-06-24 17:04:56 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-06-24 17:04:56 -0400 |
commit | 89d67ebfa9d02b46764810fb315e82f7593b2400 (patch) | |
tree | 61788a114cea75040f09ab2dc825959fe84fab4d /GNUmakefile | |
parent | 0e1cc8d4e6ca53222d448df5e421c5d33383022f (diff) |
Support VPATH builds.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index 5d1fbde..d4572cd 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -43,6 +43,8 @@ TARGETS := $(notdir ${HDR} ${LIB}) SHA256SUM := $(firstword $(wildcard /usr/local/bin/sha256sum /usr/local/bin/gsha256sum /usr/bin/sha256sum)) +CHECKSUMS ?= Checksums + all: ${TARGETS} clean: @@ -60,7 +62,7 @@ ${LIB}: ${HDR} ifeq "" "${SHA256SUM}" @echo "Couldn't find sha256sum, not verifying distribution checksums" else - ${SHA256SUM} --check Checksums + ${SHA256SUM} --check ${CHECKSUMS} endif cd ${REPO}; ${MAKE} CFLAGS='${CFLAGS}' @@ -82,5 +84,5 @@ TAGS: ${HDR} ifneq "" "${SHA256SUM}" regenerate-checksums: ${HDR} cd ${REPO}; git clean -dxf - find ${REPO} -name .git -prune -o -type f -print | sort | xargs ${SHA256SUM} >Checksums + find ${REPO} -name .git -prune -o -type f -print | sort | xargs ${SHA256SUM} >${CHECKSUMS} endif |