summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-02-21 15:25:16 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-02-21 15:25:16 (GMT)
commit58305242a2c0c4282b685b31a58d0332b6158025 (patch)
tree131e718e10385140d92d230225af114e53c2297d
parent62467d9d4dbb69aa632ae684b4a5a3f4c3b4a1ff (diff)
parentad883ac8f94e693309034d87b870fea4f414ca8d (diff)
downloadmxe-58305242a2c0c4282b685b31a58d0332b6158025.zip
mxe-58305242a2c0c4282b685b31a58d0332b6158025.tar.gz
mxe-58305242a2c0c4282b685b31a58d0332b6158025.tar.bz2
Merge pull request #1223 from tehnick/fix-make-clean
Makefile: fix make clean target when WINEPREFIX directory doesn't exist
-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))