[project @ 2000-10-27 14:40:40 by simonmar]
authorsimonmar <unknown>
Fri, 27 Oct 2000 14:40:40 +0000 (14:40 +0000)
committersimonmar <unknown>
Fri, 27 Oct 2000 14:40:40 +0000 (14:40 +0000)
create ghc-inplace

ghc/compiler/Makefile

index 7143701..9c807ef 100644 (file)
@@ -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