diff options
author | sof <unknown> | 2004-08-25 17:15:42 +0000 |
---|---|---|
committer | sof <unknown> | 2004-08-25 17:15:42 +0000 |
commit | 8a5dd97ca345bad3be972094a20146e00e727e9d (patch) | |
tree | 22e49bd6e44119e531a423a83afb2bf8ac10023f /src | |
parent | 7f45a6f93a853ab06f3c7572483d7ed2a5b40919 (diff) |
[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
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
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" |