From 37588686ebcd4797c9096b5a00a0db6b7464582b Mon Sep 17 00:00:00 2001 From: mthomas Date: Fri, 21 May 2004 06:38:14 +0000 Subject: [haddock @ 2004-05-21 06:38:14 by mthomas] Windows exe extensions (bin remains for Unix). --- src/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3