+CLEAN_FILES += package.conf.installed package.conf.inplace
+
+else # $(STANDALONE_PACKAGE) == "YES"
+
+# Let the package configuration file refer to $(libdir) as
+# ${pkglibdir}. Note we can't use ${libdir} because ghc-pkg already
+# redefines it to point to GHC's libdir (bug or feature?).
+#
+install :: package.conf.installed
+ pkglibdir=$(libdir) $(GHC_PKG) --force --update-package <package.conf.installed
+
+endif # $(STANDALONE_PACKAGE)