X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2Fhc-build;h=21d9db6a47391e0964ad6d6589e201b4f8a09091;hb=27d13cb655147c28eeed0f06cac6fc40c5d778aa;hp=c96d4ab8a8362f7734d1d3097de540f8ced4f961;hpb=5363a2a46f9d4569ccddd6463fd75fd7c2dd72b0;p=ghc-hetmet.git diff --git a/distrib/hc-build b/distrib/hc-build index c96d4ab..21d9db6 100644 --- a/distrib/hc-build +++ b/distrib/hc-build @@ -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