X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=Makefile;h=3b7f99cc9737edadcef4122c687d17af51e9526c;hp=7d0d66d7fd7caaa631742645d2b370e535ac19e0;hb=8c440cff43c20c3b79cd80e7f65fadd95328ff43;hpb=fbef88c431d601ef82f045a2ea70d18ea4e0e9b8 diff --git a/Makefile b/Makefile index 7d0d66d..3b7f99c 100644 --- a/Makefile +++ b/Makefile @@ -76,6 +76,11 @@ check-packages : exit 1; \ fi \ done + if test ! -e libraries/base/configure; then \ + echo "Looks like you're missing base's configure script."; \ + echo "Did you run 'sh boot' at the top level?"; \ + exit 1; \ + fi stage1 : check-packages $(MAKE) -C utils/mkdependC boot @@ -365,13 +370,6 @@ binary-dist:: done endif -# Jiggle the files around to make a valid Windows distribution if necessary -ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -binary-dist :: fiddle-binary-dist -endif - -fiddle-binary-dist: - cd $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) && ../distrib/prep-bin-dist-mingw .PHONY: binary-dist-doc-% BIN_DIST_LIBDIR=$(BIN_DIST_DIR)/libraries @@ -396,22 +394,34 @@ $(BINARY_DIST_LIBRARY_RULES): binary-dist-lib-%: \( \( -name "*.o" -o -name "*.p_o" \) -a \! -name "HS*" \) \ -exec rm {} \; +# Jiggle the files around to make a valid Windows distribution if necessary +ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +binary-dist :: fiddle-binary-dist +endif + +.PHONY: fiddle-binary-dist +fiddle-binary-dist: + cd $(BIN_DIST_DIR) && ../distrib/prep-bin-dist-mingw # Tar up the distribution and build a manifest binary-dist :: tar-binary-dist +.PHONY: tar-binary-dist tar-binary-dist: ( cd $(BIN_DIST_TOPDIR); tar cf - $(BIN_DIST_NAME) | bzip2 >$(BIN_DIST_TARBALL) ) ( cd $(BIN_DIST_TOPDIR); bunzip2 -c $(BIN_DIST_TARBALL) | tar tf - | sed "s/^ghc-$(ProjectVersion)/fptools/" | sort >bin-manifest-$(ProjectVersion) ) # Upload the distribution and documentation ifneq "$(PublishLocation)" "" -binary-dist :: +binary-dist :: publish-binary-dist +endif + +.PHONY: publish-binary-dist +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\ done $(PublishCp) -r $(BIN_DIST_DIR)/share/html/* $(PublishLocation)/docs -endif binary-dist::