summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d0c73c4..7668a70 100644
--- a/Makefile
+++ b/Makefile
@@ -620,7 +620,7 @@ BUILD_PKG_TMP_FILES := *-*.list mxe-*.tar.xz mxe-*.deb* wheezy jessie
.PHONY: clean
clean:
- -chmod 0755 "$$WINEPREFIX"
+ @[ -d "$$WINEPREFIX" ] && chmod 0755 "$$WINEPREFIX" || true
rm -rf $(call TMP_DIR,*) $(PREFIX) \
$(addprefix $(TOP_DIR)/, $(BUILD_PKG_TMP_FILES))