From 6a5551618d8480ed5d486956848abb884cbb276a Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 27 Oct 2000 14:40:40 +0000 Subject: [PATCH] [project @ 2000-10-27 14:40:40 by simonmar] create ghc-inplace --- ghc/compiler/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 -- 1.7.10.4