[project @ 2001-07-23 23:10:03 by ken]
[ghc-hetmet.git] / distrib / hc-build
index 3f1824a..f52f29c 100644 (file)
@@ -8,7 +8,7 @@
 # unpacked).  All options are passed through to ./configure (especially
 # useful with --prefix).
 
-configopts="$*"
+configopts="$*"         # e.g., --enable-hc-boot-unregisterised
 
 # check for GNU make
 #
@@ -43,11 +43,14 @@ $MAKE -C hslibs boot all
 $MAKE -C ghc all
 
 echo "*** Building libraries..."
-./configure
+GHC="$PWD/ghc/compiler/ghc-inplace" HappyCmd="$PWD/distrib/fake-happy" ./configure
 
+# make ghc/utils while we still have libraries in ghc/lib
+$MAKE -C ghc/utils clean boot
+$MAKE -C ghc/utils all
+
+# now, clean and build the libraries
 $MAKE -C ghc/lib   clean boot
 $MAKE -C ghc/lib   all
 $MAKE -C hslibs    clean boot
 $MAKE -C hslibs    all
-$MAKE -C ghc/utils clean boot
-$MAKE -C ghc/utils all