[project @ 2005-03-11 12:54:08 by simonmar]
[ghc-hetmet.git] / ghc / utils / runghc / Makefile
index cd2f607..0bd4330 100644 (file)
@@ -1,7 +1,7 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
 
-HS_PROG                = runghc
+HS_PROG                = runghc$(exeext)
 INSTALL_PROGS   += $(HS_PROG)
 
 UseGhcForCc = YES
@@ -34,12 +34,14 @@ SRC_MKDEPENDHS_OPTS += \
 all :: runhaskell
 
 runhaskell : $(HS_PROG)
-       $(CP) $< runhaskell
+       $(CP) $< runhaskell$(exeext)
+
+CLEAN_FILES += runhaskell
 
 # Only install runhaskell if there isn't already one installed
 ifneq "$(findstring install, $(MAKECMDGOALS))" ""
 ifeq "$(wildcard $(bindir)/runhaskell)" ""
-INSTALL_PROGS += runhaskell
+INSTALL_PROGS += runhaskell$(exeext)
 endif
 endif