From e6982912efacef7a78bc2dc98607622a81566a3f Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 30 Aug 2004 15:44:59 +0000 Subject: [haddock @ 2004-08-30 15:44:59 by sof] escape HADDOCK_VERSION double quotes on all platforms when compiling with <=6.0.x --- src/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)"' -- cgit v1.2.3