endif
# Jiggle the files around to make a valid Windows distribution if necessary
-ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
binary-dist :: fiddle-binary-dist
endif
# Upload the distribution and documentation
ifneq "$(PublishLocation)" ""
binary-dist ::
+ $(MAKE) publish-binary-dist
+endif
+
+publish-binary-dist :
@for i in 0 1 2 3 4 5 6 7 8 9; do \
echo "Try $$i: $(PublishCp) $(BIN_DIST_TARBALL) $(PublishLocation)"; \
if $(PublishCp) $(BIN_DIST_TARBALL) $(PublishLocation); then break; fi\