Makefile: fix make clean target when $$WINEPREFIX directory doesn't exist

This commit is contained in:
Boris Pek 2016-02-18 17:38:02 +03:00
parent 62467d9d4d
commit ad883ac8f9
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))