Fix SPARC build, missing #include
[ghc-hetmet.git] / mk / cabal.mk
index bdf8e99..3d525d7 100644 (file)
@@ -44,7 +44,7 @@ with-stage-2:
 
 install:
        $(INSTALL_PACKAGE) install                                        \
-                          '$(DESTDIR)$(bindir)/ghc-pkg'                  \
+                          '$(GHC_PKG_INSTALL_PROG)'                      \
                           '$(DESTDIR)$(datadir)/package.conf'            \
                           '$(DESTDIR)' '$(prefix)'                       \
                           '$(prefix)' '$(bindir)' '$(libdir)'            \
@@ -56,6 +56,7 @@ install:
 clean:
        -$(CABAL) clean --distpref dist-inplace
        -$(CABAL) clean --distpref dist-install
+       $(RM) -rf install-inplace
 ifneq "$(EXTRA_CLEAN)" ""
        $(RM) -f $(EXTRA_CLEAN)
 endif