Typo fixed
[ghc-hetmet.git] / utils / hsc2hs / Makefile
1
2 TOP=../..
3 include $(TOP)/mk/boilerplate.mk
4 include $(TOP)/mk/cabal-flags.mk
5
6 # XXX We would like to turn this on, but Cabal generates paths files
7 #     that are not -Wall clean!
8 # SRC_HC_OPTS      += -Wall
9
10 CABAL = $(FPTOOLS_TOP_ABS)/libraries/cabal-bin \
11             $(GHC) $(FPTOOLS_TOP_ABS)/libraries/bootstrapping.conf
12
13 ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
14 INSTALL_FLAGS =
15 else
16 INSTALL_FLAGS = --enable-shell-wrappers
17 endif
18
19 boot:
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)
23
24 ifneq "$(NO_INSTALL_HSC2HS)" "YES"
25 # XXX
26 #all:
27 #       $(CABAL) configure --distpref dist-install $(INSTALL_CONFIGURE_FLAGS)
28 #       $(CABAL) build     --distpref dist-install $(BUILD_FLAGS)
29 endif
30
31 all:
32
33 clean: distclean
34
35 distclean:
36         -$(CABAL) clean --distpref dist-inplace
37         -$(CABAL) clean --distpref dist-install
38
39 # XXX fix:
40 #binary-dist:
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/
46