TOP=..
include $(TOP)/mk/boilerplate.mk
-SUBDIRS = ghc-prim integer-gmp base array packedstring containers bytestring
-SUBDIRS += old-locale old-time filepath directory
+SUBDIRS = ghc-prim $(INTEGER_LIBRARY) base array packedstring
+SUBDIRS += containers bytestring old-locale old-time filepath directory
ifeq "$(GhcLibsWithUnix)" "YES"
SUBDIRS += unix
endif
$(space)--configure-option=',\
$(space)$(CONFIGURE_ARGS))
-$(foreach SUBDIR,$(SUBDIRS), \
- stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).$(SUBDIR)): \
-stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).%: %/setup/Setup
- -$(RM) -f stamp/configure.library.*.$* $*/unbuildable
- ( cd $* && setup/Setup configure \
+ALL_CONFIGURE_FLAGS = \
$(CONFIGURE_OPTS) \
--prefix=/NONEXISTANT \
--bindir=/NONEXISTANT \
--haddock-options="--use-contents=../index.html \
--use-index=../doc-index.html" \
$(FLAGGED_CONFIGURE_ARGS) \
- --configure-option=--with-cc=$(CC) ) \
+ --configure-option=--with-cc=$(CC)
+
+$(foreach SUBDIR,$(SUBDIRS), \
+ stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).$(SUBDIR)): \
+stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).%: %/setup/Setup
+ -$(RM) -f stamp/configure.library.*.$* $*/unbuildable
+ ( cd $* && setup/Setup configure $(ALL_CONFIGURE_FLAGS) ) \
&& touch $@ || touch $*/unbuildable
# We don't touch $@ if configure failed as we would prefer to try
# configuring it next time round, rather than assuming it'll still fail.
$(CABAL_HADDOCK_FLAGS); \
fi
ifneq "$(HSCOLOUR)" ""
-# We use */src rather than $*/src due to the integer-gmp/integer mismatch
+# We use */src rather than $*/src due to the $(INTEGER_LIBRARY)/integer
+# mismatch
if ifBuildable/ifBuildable $*; then cp hscolour.css $*/dist/doc/html/*/src/; fi
endif