Merge pull request #1223 from tehnick/fix-make-clean

Makefile: fix make clean target when WINEPREFIX directory doesn't exist
This commit is contained in:
Boris Nagaev 2016-02-21 18:25:16 +03:00
commit 58305242a2
1 changed files with 1 additions and 1 deletions

View File

@ -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))