3 include $(TOP)/mk/boilerplate.mk
4 include $(TOP)/mk/cabal-flags.mk
6 # XXX We would like to turn thsi on, but Cabal generates paths files
7 # that are not -Wall clean!
10 CABAL = $(FPTOOLS_TOP_ABS)/libraries/cabal-bin \
11 $(GHC) $(FPTOOLS_TOP_ABS)/libraries/bootstrapping.conf
13 ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
16 INSTALL_FLAGS = --enable-shell-wrappers
20 $(CABAL) configure --distpref dist-inplace $(INPLACE_CONFIGURE_FLAGS)
21 $(CABAL) build --distpref dist-inplace $(BUILD_FLAGS)
22 $(CABAL) install --distpref dist-inplace $(INSTALL_FLAGS)
24 ifneq "$(NO_INSTALL_HSC2HS)" "YES"
27 # $(CABAL) configure --distpref dist-install $(INSTALL_CONFIGURE_FLAGS)
28 # $(CABAL) build --distpref dist-install $(BUILD_FLAGS)
36 -$(CABAL) clean --distpref dist-inplace
37 -$(CABAL) clean --distpref dist-install
41 # $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/hsc2hs
42 # $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/utils/hsc2hs/
43 # $(INSTALL_DATA) hsc2hs.sh $(BIN_DIST_DIR)/utils/hsc2hs/
44 # $(INSTALL_DATA) $(INSTALL_DATAS) $(BIN_DIST_DIR)/utils/hsc2hs/
45 # $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hsc2hs/