aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorsimonmar <unknown>2003-07-28 14:32:43 +0000
committersimonmar <unknown>2003-07-28 14:32:43 +0000
commit6cfeee53431768f8d8326d6c645d6ccda198bde0 (patch)
tree7bcf9f5603882ccd49d967a9709a32cfd1e8ea21 /src/Makefile
parentdbb776cd407bd7237fb81901d6bf405851b46754 (diff)
[haddock @ 2003-07-28 14:32:42 by simonmar]
Update to avoid using hslibs with GHC >= 5.04
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 5064025b..c7685e92 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,7 +3,15 @@ include $(TOP)/mk/boilerplate.mk
INSTALLING=1
+ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
+
+# Don't use any hslibs packages in GHC >= 5.04
+ifeq "$(ghc_ge_504)" "YES"
+SRC_HC_OPTS += -package network -fglasgow-exts -cpp
+else
SRC_HC_OPTS += -package data -package text -package util -package net -fglasgow-exts -cpp
+endif
+
HS_PROG = haddock.bin
HsParser_HC_OPTS += -Onot