From 8a5dd97ca345bad3be972094a20146e00e727e9d Mon Sep 17 00:00:00 2001 From: sof Date: Wed, 25 Aug 2004 17:15:42 +0000 Subject: [haddock @ 2004-08-25 17:15:42 by sof] backquote HADDOCK_VERSION defn for <= ghc-6.0.x; believe this is only needed under mingw --- src/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 8f60a429..f43341b5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -5,6 +5,7 @@ INSTALLING=1 ghc_ge_504 := $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) ghc_ge_603 := $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi) +ghc_le_600 := $(shell if (test $(GhcCanonVersion) -le 600); then echo YES; else echo NO; fi) SRC_HC_OPTS += -fglasgow-exts -cpp @@ -33,8 +34,11 @@ endif HsParser_HC_OPTS += -Onot HaddockParse_HC_OPTS += -Onot +ifeq "$(HOSTPLATFORM)$(ghc_le_600)" "i386-unknown-mingw32YES" +HaddockVersion_HC_OPTS = -D'HADDOCK_VERSION=\"$(ProjectVersion)\"' +else HaddockVersion_HC_OPTS = -D'HADDOCK_VERSION="$(ProjectVersion)"' - +endif HaddockVersion : ../mk/version.mk ifeq "$(INSTALLING)" "1" -- cgit v1.2.3