diff options
author | Ian Lynagh <igloo@earth.li> | 2008-07-17 15:04:20 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-07-17 15:04:20 +0000 |
commit | d06b357cda38dc4ba0a639e455771ab8ecb498b2 (patch) | |
tree | 84a69ca50087c4a9249650427844beeec4ccc093 /utils/hsc2hs | |
parent | 5b9164b417bd96a629adb0998796e2f9d2d5d22f (diff) | |
download | haskell-d06b357cda38dc4ba0a639e455771ab8ecb498b2.tar.gz |
Do the building and installing of hsc2hs with the stage1 compiler
Diffstat (limited to 'utils/hsc2hs')
-rw-r--r-- | utils/hsc2hs/Makefile | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/utils/hsc2hs/Makefile b/utils/hsc2hs/Makefile index b26562b352..66fb9deb6f 100644 --- a/utils/hsc2hs/Makefile +++ b/utils/hsc2hs/Makefile @@ -13,25 +13,30 @@ else INSTALL_FLAGS = --enable-shell-wrappers endif -boot: - $(CABAL) configure --distpref dist-inplace \ +default all: with-bootstrapping-compiler + +with-bootstrapping-compiler: + $(CABAL) configure --distpref dist-inplace \ $(INPLACE_DIRS_CONFIGURE_FLAGS) \ - $(USE_BOOT_CONFIGURE_FLAGS) \ + $(USE_BOOT_CONFIGURE_FLAGS) \ $(COMMON_CONFIGURE_FLAGS) $(CABAL) build --distpref dist-inplace $(BUILD_FLAGS) $(CABAL) install --distpref dist-inplace $(INSTALL_FLAGS) -ifneq "$(NO_INSTALL_HSC2HS)" "YES" -# XXX -#all: -# $(CABAL) configure --distpref dist-install \ -# $(INPLACE_DIRS_CONFIGURE_FLAGS) \ -# $(USE_STAGE1_CONFIGURE_FLAGS) \ -# $(COMMON_CONFIGURE_FLAGS) -# $(CABAL) build --distpref dist-install $(BUILD_FLAGS) -endif - -all: +with-stage-1: + $(CABAL) configure --distpref dist-install \ + $(INSTALL_DIRS_CONFIGURE_FLAGS) \ + $(USE_STAGE1_CONFIGURE_FLAGS) \ + $(COMMON_CONFIGURE_FLAGS) + $(CABAL) build --distpref dist-install $(BUILD_FLAGS) + +install: + $(INSTALL_PACKAGE) install UNUSED UNUSED '$(DESTDIR)' '$(prefix)' \ + '$(prefix)' '$(bindir)' '$(libdir)' \ + '$(libexecdir)' '$(dynlibdir)' '$(datadir)' \ + '$(docdir)' '$(htmldir)' '$(haddockdir)' + --distpref dist-install \ + $(INSTALL_FLAGS) clean: distclean |