X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=distrib%2Fhc-build;h=0771980b05875d92203d56eef1ba0b40277fee15;hp=a9074780e444ec4078bdd7fdb8a20464c3f8a2ca;hb=143f4381d242e4a1c3174e8a0732a1e48f00a1aa;hpb=355076ac5c42dbc9b50ba150f2fdf1a0e76fa8e3 diff --git a/distrib/hc-build b/distrib/hc-build index a907478..0771980 100644 --- a/distrib/hc-build +++ b/distrib/hc-build @@ -1,13 +1,16 @@ -#/bin/sh +#!/bin/sh -e # Manuel M. T. Chakravarty , June 2000 +# Updated for GHC 5.00, Simon Marlow, March 2001 +# Updated for GHC 5.04.3, Urban Boquist, March 2003 # # Script to build GHC from .hc files (must be run in the fptools/ root # directory into which the source and .hc files must already have been # unpacked). All options are passed through to ./configure (especially # useful with --prefix). -configopts="$*" +configopts="$*" # e.g., --enable-hc-boot-unregisterised +PWD=`pwd` # check for GNU make # @@ -23,24 +26,85 @@ fi # build configuration # -cat >mk/build.mk <>mk/build.mk <>mk/build.mk <>mk/build.mk -$MAKE -C ghc/lib clean boot all || exit 1 -$MAKE -C hslibs clean boot all +# At this point, the tree should be safe to do 'make install stage=1' in.