From: simonmar Date: Fri, 27 Oct 2000 14:40:40 +0000 (+0000) Subject: [project @ 2000-10-27 14:40:40 by simonmar] X-Git-Tag: Approximately_9120_patches~3483 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=6a5551618d8480ed5d486956848abb884cbb276a;p=ghc-hetmet.git [project @ 2000-10-27 14:40:40 by simonmar] create ghc-inplace --- diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 7143701..9c807ef 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.98 2000/10/27 11:48:54 sewardj Exp $ +# $Id: Makefile,v 1.99 2000/10/27 14:40:40 simonmar Exp $ TOP = .. include $(TOP)/mk/boilerplate.mk @@ -374,6 +374,19 @@ SRC_LD_OPTS += -syslib misc -syslib exts endif endif +# ----------------------------------------------------------------------------- +# create ghc-inplace, a convenient way to run ghc from the build tree... + +all :: ghc-inplace + +ghc-inplace : hsc + @$(RM) $@ + echo '#!/bin/sh' >>$@ + echo exec $(FPTOOLS_TOP_ABS)/ghc/compiler/hsc -B$(FPTOOLS_TOP_ABS) '"$$@"' >>$@ + chmod 755 $@ + +CLEAN_FILES += ghc-inplace + #----------------------------------------------------------------------------- # install