From 45ff783c59607182888c5d151ab3cfbdb8197b49 Mon Sep 17 00:00:00 2001 From: panne Date: Sat, 23 Oct 2004 19:54:00 +0000 Subject: [haddock @ 2004-10-23 19:54:00 by panne] Improved the Cygwin/MinGW chaos a little bit. There is still confusion about host platform vs. target platform... --- src/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index b25f1ff0..160ec763 100644 --- a/src/Makefile +++ b/src/Makefile @@ -27,6 +27,7 @@ endif HS_PROG = haddock$(HS_PROG_EXT) +# Why HOST platform, not TARGET platform??? Confusing... ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32" Main_HC_OPTS += -Dmingw32_HOST_OS=1 endif @@ -55,17 +56,17 @@ ifeq "$(BIN_DIST)" "1" HADDOCKLIB=$$\"\"datadir/haddock HADDOCKBIN=$$\"\"libexecdir/$(HS_PROG) else -ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32" # --mixed is only provided by newer versions of cygpath (1.2 doesn't have it, for instance.) #HADDOCKLIB=$(shell cygpath --mixed $(datadir)) HADDOCKLIB=$(shell cygpath -w $(datadir) | sed -e 's%\\%/%g') else HADDOCKLIB=$(datadir) -endif # mingw +endif HADDOCKBIN=$(libexecdir)/$(HS_PROG) endif # BIN_DIST else -ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32" # See above comment re: --mixed #HADDOCKLIB=$(shell cygpath --mixed $(FPTOOLS_TOP_ABS)/haddock/html) HADDOCKLIB=$(shell cygpath -w $(FPTOOLS_TOP_ABS)/haddock/html | sed -e 's%\\%/%g') @@ -97,8 +98,8 @@ INTERP=$(SHELL) SCRIPT_SUBST_VARS = HADDOCKLIB HADDOCKBIN -# The script isn't installed on Windows; we run the binary directly -ifeq "$(Windows)" "NO" +# The script isn't installed on MinGW; we run the binary directly +ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" INSTALL_SCRIPTS += $(SCRIPT_PROG) endif -- cgit v1.2.3