b26562b35213b5635841774d3858a168760e3804
[ghc.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 ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
11 INSTALL_FLAGS =
12 else
13 INSTALL_FLAGS = --enable-shell-wrappers
14 endif
15
16 boot:
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)
23
24 ifneq "$(NO_INSTALL_HSC2HS)" "YES"
25 # XXX
26 #all:
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)
32 endif
33
34 all:
35
36 clean: distclean
37
38 distclean:
39 -$(CABAL) clean --distpref dist-inplace
40 -$(CABAL) clean --distpref dist-install
41
42 # XXX fix:
43 #binary-dist:
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/
49