X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=distrib%2Fhc-build;h=dd9134adfb3ae54d5d19128f93da428c1ec1ab86;hp=6fb9f8687a7025bf587ed20d261e1f4a84ef9646;hb=135045b28ff8a8d9b0b5f5cce0373387f541f600;hpb=4b7199131876dc3af72612a84348b0c03c7849a5 diff --git a/distrib/hc-build b/distrib/hc-build index 6fb9f86..dd9134a 100644 --- a/distrib/hc-build +++ b/distrib/hc-build @@ -1,34 +1,96 @@ -#/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` -# build configuration +# check for GNU make # -cat >mk/build.mk <&1 | grep "GNU Make" >/dev/null && break +done +if [ $MAKE = no-make ]; then + echo "Fatal error: Cannot find the GNU make utility" + exit 1 +fi + +# build configuration # -touch ghc/compiler/rename/ParseIface.hs -touch ghc/compiler/parser/Parser.hs +case configopts in +*--enable-hc-boot-unregisterised*) + cat >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' in.