3 include $(TOP)/mk/boilerplate.mk
4 include $(TOP)/mk/cabal-flags.mk
6 # XXX We would like to turn this on, but Cabal generates paths files
7 # that are not -Wall clean!
10 ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
13 INSTALL_FLAGS = --enable-shell-wrappers
17 $(CABAL) configure --distpref dist-inplace \
18 $(INPLACE_DIRS_CONFIGURE_FLAGS) \
19 $(USE_BOOT_CONFIGURE_FLAGS) \
20 $(COMMON_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 \
28 # $(INPLACE_DIRS_CONFIGURE_FLAGS) \
29 # $(USE_STAGE1_CONFIGURE_FLAGS) \
30 # $(COMMON_CONFIGURE_FLAGS)
31 # $(CABAL) build --distpref dist-install $(BUILD_FLAGS)
39 -$(CABAL) clean --distpref dist-inplace
40 -$(CABAL) clean --distpref dist-install
44 # $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/hsc2hs
45 # $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/utils/hsc2hs/
46 # $(INSTALL_DATA) hsc2hs.sh $(BIN_DIST_DIR)/utils/hsc2hs/
47 # $(INSTALL_DATA) $(INSTALL_DATAS) $(BIN_DIST_DIR)/utils/hsc2hs/
48 # $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hsc2hs/