[project @ 2001-07-23 22:33:52 by ken]
[ghc-hetmet.git] / distrib / hc-build
index c96d4ab..21d9db6 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
 #
@@ -38,7 +38,6 @@ touch ghc/compiler/main/ParsePkgConf.hs
 echo "*** Building hsc..."
 ./configure --enable-hc-boot $configopts
 $MAKE -C glafp-utils boot all
-$MAKE -C ghc/utils/unlit boot all
 $MAKE -C ghc boot
 $MAKE -C hslibs boot all
 $MAKE -C ghc all
@@ -46,9 +45,12 @@ $MAKE -C ghc all
 echo "*** Building libraries..."
 ./configure
 
-# clean in ghc/lib, but avoid removing hsc2hs-generated .hs files
-$MAKE -C ghc/lib   clean HSC_SRCS=""
-$MAKE -C ghc/lib   boot all
+# make ghc/utils while we still have libraries in ghc/lib
+$MAKE -C ghc/utils clean boot
+$MAKE -C ghc/utils all
 
-$MAKE -C hslibs    clean boot all
-$MAKE -C ghc/utils clean boot 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