-ifneq "$(NO_INSTALL_HSC2HS)" "YES"
-# XXX
-#all:
-# $(CABAL) configure --distpref dist-install $(INSTALL_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)