aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsof <unknown>2004-08-30 15:44:59 +0000
committersof <unknown>2004-08-30 15:44:59 +0000
commite6982912efacef7a78bc2dc98607622a81566a3f (patch)
tree3a53b00d6532f28e2938620636a4b349475d519f
parent8d52cedb74e4408c714d190858311c7db1982535 (diff)
[haddock @ 2004-08-30 15:44:59 by sof]
escape HADDOCK_VERSION double quotes on all platforms when compiling with <=6.0.x
-rw-r--r--src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index f43341b5..b4997738 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -34,7 +34,11 @@ endif
HsParser_HC_OPTS += -Onot
HaddockParse_HC_OPTS += -Onot
-ifeq "$(HOSTPLATFORM)$(ghc_le_600)" "i386-unknown-mingw32YES"
+
+# <= 6.0.x (double-)quotes all arguments when invoking utils, hence
+# the need to escape the string quotes here. >= 6.2.x does add a
+# layer of quoting.
+ifeq "$(ghc_le_600)" "YES"
HaddockVersion_HC_OPTS = -D'HADDOCK_VERSION=\"$(ProjectVersion)\"'
else
HaddockVersion_HC_OPTS = -D'HADDOCK_VERSION="$(ProjectVersion)"'