Define CABAL in mk/cabal-flags.mk, rather than everywhere we use it
authorIan Lynagh <igloo@earth.li>
Thu, 10 Jul 2008 13:49:28 +0000 (13:49 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 10 Jul 2008 13:49:28 +0000 (13:49 +0000)
libraries/Makefile
mk/cabal-flags.mk
utils/hsc2hs/Makefile

index ed8bb94..65778ee 100644 (file)
@@ -154,7 +154,6 @@ subdirs:
 HERE_ABS=$(FPTOOLS_TOP_ABS)/libraries
 
 IFBUILDABLE=ifBuildable/ifBuildable $(HERE_ABS)/boot-packages
-CABAL=$(HERE_ABS)/cabal-bin $(GHC) $(HERE_ABS)/bootstrapping.conf
 
 CABAL_GHC_FLAGS = -Wall
 ifeq "$(ghc_ge_605)" "NO"
index 7a9f9f0..9b2ed2a 100644 (file)
@@ -2,6 +2,9 @@
 nothing=
 space=$(nothing) $(nothing)
 
+LIBRARIES_ABS = $(FPTOOLS_TOP_ABS)/libraries
+CABAL = $(LIBRARIES_ABS)/cabal-bin $(GHC) $(LIBRARIES_ABS)/bootstrapping.conf
+
 # We rely on all the CONFIGURE_ARGS being quoted with '...', and there
 # being no 's inside the values.
 FLAGGED_CONFIGURE_ARGS = $(subst $(space)',\
index 699aa80..2971779 100644 (file)
@@ -7,9 +7,6 @@ include $(TOP)/mk/cabal-flags.mk
 #     that are not -Wall clean!
 # SRC_HC_OPTS      += -Wall
 
-CABAL = $(FPTOOLS_TOP_ABS)/libraries/cabal-bin \
-            $(GHC) $(FPTOOLS_TOP_ABS)/libraries/bootstrapping.conf
-
 ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
 INSTALL_FLAGS =
 else