Avoid segfault when ticky file argument is stderr
[ghc-hetmet.git] / Makefile
index 1e79212..3b7f99c 100644 (file)
--- 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
@@ -396,7 +401,7 @@ endif
 
 .PHONY: fiddle-binary-dist
 fiddle-binary-dist:
-       cd $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) && ../distrib/prep-bin-dist-mingw
+       cd $(BIN_DIST_DIR) && ../distrib/prep-bin-dist-mingw
 # Tar up the distribution and build a manifest
 binary-dist :: tar-binary-dist