1 ############################################################################
3 # This is the GHC Makefile for MacOS X-specific targets
7 # framework-pkg [MacOS only]
8 # Builds /Library/Frameworks/GHC.framework wrapped into a Mac
9 # installer package; must be executed in a ./configure'd tree
10 # (--prefix doesn't matter as it will be overridden)
12 # framework-binary-dist [MacOS only]
13 # Builds GHC.framework encapsulating a binary distribution
14 # (to give a relocatable framework); must be used in a fully
17 ############################################################################
20 include $(TOP)/mk/boilerplate.mk
22 # The ProjectVersionInt is GHC's idea of an API version and hence determines
23 # the framework version.
24 FRAMEWORK_VERSION = $(ProjectVersionInt)
26 # Xcode requires CURRENT_PROJECT_VERSION to be an int or float. We use this
27 # only as the build version (aka CFBundleVersion).
28 CURRENT_PROJECT_VERSION = $(ProjectVersionInt).$(ProjectPatchLevel)
30 # The user-visible CFBundleShortVersionString is set to the standard GHC
32 SHORT_VERSION_STRING = $(ProjectVersion)
35 xcodebuild -target GHC-systemwide install\
36 CURRENT_PROJECT_VERSION=$(CURRENT_PROJECT_VERSION)\
37 SHORT_VERSION_STRING=$(SHORT_VERSION_STRING)\
38 FRAMEWORK_VERSION=$(FRAMEWORK_VERSION)\
39 CURRENT_LIBRARY_VERSION=$(FRAMEWORK_VERSION)
40 @echo "FIXME: call the packager"; exit 1
42 # Instead of making 'binary-dist' a Makefile dependency, we let xcodebuild call
43 # 'make binary-dist'. This has the advantage that xcode knows the framework
44 # path into which the distribution should be installed and can instruct
45 # binary-dist to put it directly into the right place without copying the whole
46 # tree yet another time.
48 framework-binary-dist:
49 xcodebuild -target GHC-relocatable build\
50 CURRENT_PROJECT_VERSION=$(CURRENT_PROJECT_VERSION)\
51 SHORT_VERSION_STRING=$(SHORT_VERSION_STRING)\
52 FRAMEWORK_VERSION=$(FRAMEWORK_VERSION)\
53 CURRENT_LIBRARY_VERSION=$(FRAMEWORK_VERSION)
54 @echo "FIXME: call the packager"; exit 1