+# Name of the installer package
+PACKAGE_NAME = GHC-$(ProjectVersion)-$(TargetArch_CPP).pkg
+
+# Xcode's installation build product location (this is where the GHC.framework
+# is assembled)
+DSTROOT=/tmp/GHC.dst
+
+# Tools directory for a system volume install
+TOOLS_SYSTEM=$(DSTROOT)/Library/Frameworks/GHC.framework/Tools
+
+PACKAGEMAKER=/Developer/usr/bin/packagemaker
+
+# Build and package GHC.framework for /Library/Frameworks
+#
+# * Be careful to clean out Xcode's build product location first, as Xcode
+# sets permissions such that a second install on top of an existing one
+# fails
+# * Make there are no contents component descriptions in the .pmdoc. These are
+# created by the PackageMaker GUI and have per default the wrong ownership
+# and permissions for all files (as well as prevent correct setting of those
+# for files that are not in the content list).