Move installPackage out into its own cabal package under utils/
[ghc.git] / utils / installPackage / Makefile
1
2 TOP=../..
3 include $(TOP)/mk/boilerplate.mk
4 include $(TOP)/mk/cabal-flags.mk
5
6 boot:
7 $(CABAL) configure --distpref dist-inplace \
8 $(INPLACE_DIRS_CONFIGURE_FLAGS) \
9 $(USE_BOOT_CONFIGURE_FLAGS) \
10 $(COMMON_CONFIGURE_FLAGS)
11 $(CABAL) build --distpref dist-inplace $(BUILD_FLAGS)
12 $(CABAL) install --distpref dist-inplace
13
14 # XXX
15 #all:
16 # $(CABAL) configure --distpref dist-install \
17 # $(INPLACE_DIRS_CONFIGURE_FLAGS) \
18 # $(USE_STAGE1_CONFIGURE_FLAGS) \
19 # $(COMMON_CONFIGURE_FLAGS)
20 # $(CABAL) build --distpref dist-install $(BUILD_FLAGS)
21
22 all:
23
24 clean: distclean
25
26 distclean:
27 -$(CABAL) clean --distpref dist-inplace
28 -$(CABAL) clean --distpref dist-install
29
30 # XXX fix:
31 #binary-dist:
32 # $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/hsc2hs
33 # $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/utils/hsc2hs/
34 # $(INSTALL_DATA) hsc2hs.sh $(BIN_DIST_DIR)/utils/hsc2hs/
35 # $(INSTALL_DATA) $(INSTALL_DATAS) $(BIN_DIST_DIR)/utils/hsc2hs/
36 # $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hsc2hs/
37