2 include $(TOP)/mk/cabal-flags.mk
4 # XXX We would like to turn this on, but Cabal generates paths files
5 # that are not -Wall clean!
8 ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
11 ifeq "$(ENABLE_SHELL_WRAPPERS)" "YES"
12 INSTALL_FLAGS = --enable-shell-wrappers
18 .PHONY: default all with-bootstrapping-compiler with-stage-1 clean distclean
20 default all: with-bootstrapping-compiler
22 with-bootstrapping-compiler:
23 $(CABAL) configure --distpref dist-inplace \
24 $(INPLACE_DIRS_CONFIGURE_FLAGS) \
25 $(USE_BOOT_CONFIGURE_FLAGS) \
26 $(COMMON_CONFIGURE_FLAGS)
27 $(CABAL) build --distpref dist-inplace $(BUILD_FLAGS)
28 $(CABAL) install --distpref dist-inplace $(INSTALL_FLAGS)
31 $(CABAL) configure --distpref dist-install \
32 $(INSTALL_DIRS_CONFIGURE_FLAGS) \
33 $(USE_STAGE1_CONFIGURE_FLAGS) \
34 $(COMMON_CONFIGURE_FLAGS)
35 $(CABAL) build --distpref dist-install $(BUILD_FLAGS)
38 $(INSTALL_PACKAGE) install UNUSED UNUSED '$(DESTDIR)' '$(prefix)' \
39 '$(prefix)' '$(bindir)' '$(libdir)' \
40 '$(libexecdir)' '$(dynlibdir)' '$(datadir)' \
41 '$(docdir)' '$(htmldir)' '$(haddockdir)' \
42 --distpref dist-install \
48 -$(CABAL) clean --distpref dist-inplace
49 -$(CABAL) clean --distpref dist-install
50 ifneq "$(EXTRA_CLEAN)" ""
51 $(RM) -f $(EXTRA_CLEAN)