瀏覽代碼

fetch.mk: allow directory removal to fail

This is helpful when the top-level build directory (the toolchain build
dir in my case) is a mounted tmpfs (which therefore cannot be removed).
Phil Sutter 14 年之前
父節點
當前提交
fde11aa6b2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mk/fetch.mk

+ 1 - 1
mk/fetch.mk

@@ -31,7 +31,7 @@ _CHECKSUM_COOKIE?=	${WRKDIR}/.checksum_done
 checksum: ${_CHECKSUM_COOKIE}
 ifeq ($(strip ${NO_CHECKSUM}),)
 ${_CHECKSUM_COOKIE}: ${FULLDISTFILES}
-	rm -rf ${WRKDIR}
+	-rm -rf ${WRKDIR}
 	@OK=n; \
 	(md5sum ${FULLDISTFILES}; echo exit) | while read sum name; do \
 		if [[ $$sum = exit ]]; then \