MERGE: add prep-bin-dist-mingw to binary-dist target, and add a separate target for
authorSimon Marlow <simonmar@microsoft.com>
Thu, 12 Apr 2007 13:13:27 +0000 (13:13 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 12 Apr 2007 13:13:27 +0000 (13:13 +0000)
 publish-binary-dist

Makefile

index 7d0d66d..fbbf544 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -366,7 +366,7 @@ binary-dist::
 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
 
@@ -406,6 +406,10 @@ tar-binary-dist:
 # 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\