aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormthomas <unknown>2004-05-21 06:38:14 +0000
committermthomas <unknown>2004-05-21 06:38:14 +0000
commit37588686ebcd4797c9096b5a00a0db6b7464582b (patch)
treea93857b8f09f8d6c9fb59e8b1f94f4c6ae56d8c1
parent225a491d67500e0c29904122d3b63b5d77a87910 (diff)
[haddock @ 2004-05-21 06:38:14 by mthomas]
Windows exe extensions (bin remains for Unix).
-rw-r--r--src/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index fb2b96ac..f6a7c51d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -19,7 +19,13 @@ else
SRC_HC_OPTS += -package data -package text -package util -package net
endif
-HS_PROG = haddock.bin
+ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
+HS_PROG_EXT = .exe
+else
+HS_PROG_EXT = .bin
+endif
+
+HS_PROG = haddock$(HS_PROG_EXT)
HsParser_HC_OPTS += -Onot
HaddockParse_HC_OPTS += -Onot
@@ -60,7 +66,9 @@ INPLACE_SCRIPT_PROG = haddock-inplace
ifeq "$(INSTALLING)" "1"
TOP_PWD := $(prefix)
SCRIPT_PROG = $(INSTALLED_SCRIPT_PROG)
+ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
LINK = haddock
+endif
else
TOP_PWD := $(FPTOOLS_TOP_ABS)
SCRIPT_PROG = $(INPLACE_SCRIPT_PROG)