summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-25 22:15:37 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-25 22:15:44 +0200
commit0ab35d9839cd96e80d587361f756bfef9481e123 (patch)
treeadf377b5de5324d6e20e310952c263a6686c6364 /mk
parent0b199ca0da89caa8bd44dea04a9f210e951a66ff (diff)
allow to disable checksum checking
Diffstat (limited to 'mk')
-rw-r--r--mk/fetch.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk
index ee24f0b60..c28808476 100644
--- a/mk/fetch.mk
+++ b/mk/fetch.mk
@@ -10,17 +10,13 @@ endif
FULLDISTFILES= $(patsubst %,${FULLDISTDIR}/%,${DISTFILES})
FETCH_STYLE?= auto
-#pre-fetch:
do-fetch:
-#post-fetch:
fetch:
-# @${MAKE} pre-fetch
ifneq ($(filter auto,${FETCH_STYLE}),)
${MAKE} ${FULLDISTFILES}
else
${MAKE} do-fetch
endif
-# @${MAKE} post-fetch
refetch:
-rm -f ${FULLDISTFILES}
@@ -31,6 +27,7 @@ checksum: ${_CHECKSUM_COOKIE}
ifeq ($(strip ${NO_CHECKSUM}),)
${_CHECKSUM_COOKIE}: ${FULLDISTFILES}
-rm -rf ${WRKDIR}
+ifneq ($(ADK_DISABLE_CHECKSUM),y)
@OK=n; \
allsums="$(strip ${PKG_MD5SUM})"; \
(md5sum ${FULLDISTFILES}; echo exit) | while read sum name; do \
@@ -50,6 +47,7 @@ ${_CHECKSUM_COOKIE}: ${FULLDISTFILES}
echo >&2 ":---> really is '$$sum'"; \
OK=0; \
done
+endif
mkdir -p ${WRKDIR}
touch ${_CHECKSUM_COOKIE}
endif