projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
All installed Haskell prgms have an inplace and an installed version
[ghc-hetmet.git]
/
utils
/
runghc
/
Makefile
diff --git
a/utils/runghc/Makefile
b/utils/runghc/Makefile
index
a7303f9
..
654ffad
100644
(file)
--- a/
utils/runghc/Makefile
+++ b/
utils/runghc/Makefile
@@
-1,7
+1,13
@@
TOP=../..
include $(TOP)/mk/boilerplate.mk
TOP=../..
include $(TOP)/mk/boilerplate.mk
-HS_PROG = runghc$(exeext)
+# We have two version: the inplace version compiled by the bootstrap compiler
+# and the install version compiled by the stage 1 compiler
+ifeq "$(stage)" "2"
+HS_PROG = runghc$(exeext)
+else
+HS_PROG = runghc-inplace$(exeext)
+endif
INSTALL_PROGS += $(HS_PROG)
UseGhcForCc = YES
INSTALL_PROGS += $(HS_PROG)
UseGhcForCc = YES