Mercurial > cpython-lru_cache-weakref
annotate Mac/Makefile.in @ 54294:dba767bc3155 legacy-trunk
remove mention of old ctypes version
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 23 May 2009 20:59:09 +0000 |
| parents | 056283a5c5da |
| children | aaeb65bab3c0 |
| rev | line source |
|---|---|
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
1 # This file can be invoked from the various frameworkinstall... targets in the |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
2 # main Makefile. The next couple of variables are overridden on the |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
3 # commandline in that case. |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
4 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
5 VERSION=@VERSION@ |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
6 builddir = .. |
|
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
7 srcdir=@srcdir@ |
|
38751
cbf272f479d1
Use configure to substitute the correct prefix instead of hardcoding
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38646
diff
changeset
|
8 prefix=@prefix@ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
9 LIBDEST=$(prefix)/lib/python$(VERSION) |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
10 RUNSHARED=@RUNSHARED@ |
|
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
11 BUILDEXE=@BUILDEXEEXT@ |
|
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
12 BUILDPYTHON=$(builddir)/python$(BUILDEXE) |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
13 DESTDIR= |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
14 LDFLAGS=@LDFLAGS@ |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
15 FRAMEWORKUNIXTOOLSPREFIX=@FRAMEWORKUNIXTOOLSPREFIX@ |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39853
diff
changeset
|
16 PYTHONFRAMEWORK=@PYTHONFRAMEWORK@ |
|
52465
0e38b941d9e4
Merged revisions 70741 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48048
diff
changeset
|
17 PYTHONFRAMEWORKIDENTIFIER=@PYTHONFRAMEWORKIDENTIFIER@ |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39853
diff
changeset
|
18 |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
19 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
20 # These are normally glimpsed from the previous set |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
21 bindir=$(prefix)/bin |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39853
diff
changeset
|
22 PYTHONAPPSDIR=/Applications/$(PYTHONFRAMEWORK) $(VERSION) |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
23 APPINSTALLDIR=$(prefix)/Resources/Python.app |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
24 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
25 # Variables for installing the "normal" unix binaries |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39853
diff
changeset
|
26 INSTALLED_PYTHONAPP=$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK) |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
27 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
28 # Items more-or-less copied from the main Makefile |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
29 DIRMODE=755 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
30 FILEMODE=644 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
31 INSTALL=@INSTALL@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
32 INSTALL_SYMLINK=ln -fsn |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
33 INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
34 INSTALL_SCRIPT= @INSTALL_SCRIPT@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
35 INSTALL_DATA=@INSTALL_DATA@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
36 LN=@LN@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
37 STRIPFLAG=-s |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
38 CPMAC=/Developer/Tools/CpMac |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
39 |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
40 APPTEMPLATE=$(srcdir)/Resources/app |
|
54213
056283a5c5da
Remove some old MacPython files that are no longer relevant.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
52465
diff
changeset
|
41 APPSUBDIRS=MacOS Resources |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
42 CACHERSRC=$(srcdir)/scripts/cachersrc.py |
|
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
43 compileall=$(srcdir)/../Lib/compileall.py |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
44 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
45 installapps: install_Python install_BuildApplet install_PythonLauncher \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
46 install_IDLE checkapplepython install_pythonw install_versionedtools |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
47 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
48 installapps4way: install_Python4way install_BuildApplet install_PythonLauncher install_IDLE install_pythonw4way install_versionedtools |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
49 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
50 |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
51 install_pythonw: pythonw |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
52 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
53 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/python$(VERSION)" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
54 ln -sf python$(VERSION) "$(DESTDIR)$(prefix)/bin/python" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
55 ln -sf pythonw$(VERSION) "$(DESTDIR)$(prefix)/bin/pythonw" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
56 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
57 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
58 # Install 3 variants of python/pythonw: |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
59 # - 32-bit (i386 and ppc) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
60 # - 64-bit (x86_64 and ppc64) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
61 # - all (all four architectures) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
62 # - Make 'python' and 'pythonw' aliases for the 32-bit variant |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
63 install_pythonw4way: pythonw-32 pythonw-64 pythonw |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
64 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw-64 "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)-64" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
65 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw-64 "$(DESTDIR)$(prefix)/bin/python$(VERSION)-64" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
66 ln -sf python$(VERSION)-64 "$(DESTDIR)$(prefix)/bin/python-64" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
67 ln -sf pythonw$(VERSION)-64 "$(DESTDIR)$(prefix)/bin/pythonw-64" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
68 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
69 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw-32 "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)-32" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
70 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw-32 "$(DESTDIR)$(prefix)/bin/python$(VERSION)-32" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
71 ln -sf python$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/python-32" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
72 ln -sf pythonw$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/pythonw-32" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
73 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
74 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)-all" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
75 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/python$(VERSION)-all" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
76 ln -sf python$(VERSION)-all "$(DESTDIR)$(prefix)/bin/python-all" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
77 ln -sf pythonw$(VERSION)-all "$(DESTDIR)$(prefix)/bin/pythonw-all" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
78 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
79 ln -sf pythonw$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
80 ln -sf python$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/python$(VERSION)" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
81 ln -sf pythonw$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/pythonw" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
82 ln -sf python$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/python" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
83 |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
84 # |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
85 # Install unix tools in /usr/local/bin. These are just aliases for the |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
86 # actual installation inside the framework. |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
87 # |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
88 installunixtools: |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
89 if [ ! -d "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ]; then \ |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
90 $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ;\ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
91 fi |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
92 for fn in python pythonw idle pydoc python-config smtpd.py \ |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
93 python$(VERSION) pythonw$(VERSION) idle$(VERSION) \ |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
94 pydoc$(VERSION) python$(VERSION)-config smtpd$(VERSION).py ;\ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
95 do \ |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
96 ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
97 done |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
98 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
99 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
100 # TODO: install symlinks for -32, -64 and -all as well |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
101 installunixtools4way: installunixtools |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
102 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
103 |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
104 # |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
105 # Like installunixtools, but only install links to the versioned binaries. |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
106 # |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
107 altinstallunixtools: |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
108 if [ ! -d "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ]; then \ |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
109 $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ;\ |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
110 fi |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
111 for fn in python$(VERSION) pythonw$(VERSION) idle$(VERSION) \ |
|
47827
7de038550523
issue #3199: Fix typo in Mac/Makefile.in
Mark Dickinson <dickinsm@gmail.com>
parents:
47473
diff
changeset
|
112 pydoc$(VERSION) python$(VERSION)-config smtpd$(VERSION).py ;\ |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
113 do \ |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
114 ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\ |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
115 done |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
116 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
117 # TODO: -32, -64 and -all variants |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
118 altinstallunixtools4way: altinstallunixtools |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38581
diff
changeset
|
119 |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
120 # By default most tools are installed without a version in their basename, to |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
121 # make it easier to install (and use) several python versions side-by-side move |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
122 # the tools to a version-specific name and add the non-versioned name as an |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
123 # alias. |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
124 install_versionedtools: |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
125 for fn in idle pydoc ;\ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
126 do \ |
|
38245
6a6c5492b9ad
Avoid creating a mess when installing a framework for the second time.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
127 if [ -h "$(DESTDIR)$(prefix)/bin/$${fn}" ]; then \ |
|
6a6c5492b9ad
Avoid creating a mess when installing a framework for the second time.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
128 continue ;\ |
|
6a6c5492b9ad
Avoid creating a mess when installing a framework for the second time.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
129 fi ;\ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
130 mv "$(DESTDIR)$(prefix)/bin/$${fn}" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\ |
|
38215
c64cd271acea
Fix some minor issues with the generated application bundles on MacOSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38178
diff
changeset
|
131 ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}" ;\ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
132 done |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
133 if [ ! -h "$(DESTDIR)$(prefix)/bin/python-config" ]; then \ |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
134 mv "$(DESTDIR)$(prefix)/bin/python-config" "$(DESTDIR)$(prefix)/bin/python$(VERSION)-config" ;\ |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
135 ln -sf "python$(VERSION)-config" "$(DESTDIR)$(prefix)/bin/python-config" ; \ |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
136 fi |
|
38245
6a6c5492b9ad
Avoid creating a mess when installing a framework for the second time.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
137 if [ ! -h "$(DESTDIR)$(prefix)/bin/smtpd.py" ]; then \ |
|
6a6c5492b9ad
Avoid creating a mess when installing a framework for the second time.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
138 mv "$(DESTDIR)$(prefix)/bin/smtpd.py" "$(DESTDIR)$(prefix)/bin/smtpd$(VERSION).py" ;\ |
|
6a6c5492b9ad
Avoid creating a mess when installing a framework for the second time.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
139 ln -sf "smtpd$(VERSION).py" "$(DESTDIR)$(prefix)/bin/smtpd.py" ;\ |
|
6a6c5492b9ad
Avoid creating a mess when installing a framework for the second time.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
140 fi |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
141 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
142 |
|
39853
bb9e914ede05
Tweak Mac/Makefile in to ensure that pythonw gets rebuild when the major version
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38751
diff
changeset
|
143 pythonw: $(srcdir)/Tools/pythonw.c Makefile |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
144 $(CC) $(LDFLAGS) -o $@ $(srcdir)/Tools/pythonw.c \ |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39853
diff
changeset
|
145 -DPYTHONWEXECUTABLE='"$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"' |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
146 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
147 pythonw-32: $(srcdir)/Tools/pythonw.c Makefile |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
148 $(CC) $(LDFLAGS) -o $@ -arch i386 -arch ppc $(srcdir)/Tools/pythonw.c \ |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
149 -DPYTHONWEXECUTABLE='"$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-32"' |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
150 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
151 pythonw-64: $(srcdir)/Tools/pythonw.c Makefile |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
152 $(CC) $(LDFLAGS) -o $@ -arch x86_64 -arch ppc64 $(srcdir)/Tools/pythonw.c \ |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
153 -DPYTHONWEXECUTABLE='"$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-64"' |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
154 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
155 install_PythonLauncher: |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
156 cd PythonLauncher && make install DESTDIR=$(DESTDIR) |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
157 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
158 install_Python: |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
159 @for i in "$(PYTHONAPPSDIR)" "$(APPINSTALLDIR)" "$(APPINSTALLDIR)/Contents"; do \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
160 if test ! -d "$(DESTDIR)$$i"; then \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
161 echo "Creating directory $(DESTDIR)$$i"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
162 $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$$i"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
163 fi;\ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
164 done |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
165 @for i in $(APPSUBDIRS); do \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
166 if test ! -d "$(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; then \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
167 echo "Creating directory $(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
168 $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
169 else true; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
170 fi; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
171 done |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
172 @for d in . $(APPSUBDIRS); \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
173 do \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
174 a=$(APPTEMPLATE)/$$d; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
175 if test ! -d $$a; then continue; else true; fi; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
176 b="$(DESTDIR)$(APPINSTALLDIR)/Contents/$$d"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
177 for i in $$a/*; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
178 do \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
179 case $$i in \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
180 *CVS) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
181 *.svn) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
182 *.py[co]) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
183 *.orig) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
184 *~) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
185 *idx) \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
186 echo $(CPMAC) "$$i" $$b; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
187 $(CPMAC) "$$i" "$$b"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
188 ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
189 *) \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
190 if test -d $$i; then continue; fi; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
191 if test -x $$i; then \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
192 echo $(INSTALL_SCRIPT) "$$i" "$$b"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
193 $(INSTALL_SCRIPT) "$$i" "$$b"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
194 else \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
195 echo $(INSTALL_DATA) "$$i" "$$b"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
196 $(INSTALL_DATA) "$$i" "$$b"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
197 fi;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
198 esac; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
199 done; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
200 done |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
39853
diff
changeset
|
201 $(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)" |
|
52465
0e38b941d9e4
Merged revisions 70741 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48048
diff
changeset
|
202 sed -e "s!%bundleid%!$(PYTHONFRAMEWORKIDENTIFIER)!g" \ |
|
0e38b941d9e4
Merged revisions 70741 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48048
diff
changeset
|
203 -e "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) \ |
|
0e38b941d9e4
Merged revisions 70741 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48048
diff
changeset
|
204 -c 'import platform; print(platform.python_version())'`!g" \ |
|
0e38b941d9e4
Merged revisions 70741 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48048
diff
changeset
|
205 < "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" \ |
|
0e38b941d9e4
Merged revisions 70741 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48048
diff
changeset
|
206 > "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist" |
|
0e38b941d9e4
Merged revisions 70741 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48048
diff
changeset
|
207 rm "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
208 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
209 install_Python4way: install_Python |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
210 lipo -extract i386 -extract ppc7400 -output "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-32" "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
211 lipo -extract x86_64 -extract ppc64 -output "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-64" "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
212 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
213 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
214 |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
215 install_IDLE: |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
216 cd IDLE && make install |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
217 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
218 install_BuildApplet: |
|
48048
96a9ebfee2cd
Fix build issue on OSX 10.4, somehow this wasn't committed before.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47827
diff
changeset
|
219 $(RUNSHARED) @ARCH_RUN_32BIT@ $(BUILDPYTHON) $(srcdir)/scripts/BuildApplet.py \ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
220 --destroot "$(DESTDIR)" \ |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46626
diff
changeset
|
221 --python=$(prefix)/Resources/Python.app/Contents/MacOS/$(PYTHONFRAMEWORK)`test -f "$(DESTDIR)$(prefix)/Resources/Python.app/Contents/MacOS/$(PYTHONFRAMEWORK)-32" && echo "-32"` \ |
|
38215
c64cd271acea
Fix some minor issues with the generated application bundles on MacOSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38178
diff
changeset
|
222 --output "$(DESTDIR)$(PYTHONAPPSDIR)/Build Applet.app" \ |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
223 $(srcdir)/scripts/BuildApplet.py |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
224 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
225 MACLIBDEST=$(LIBDEST)/plat-mac |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
226 MACTOOLSDEST=$(prefix)/Mac/Tools |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
227 MACTOOLSSRC=$(srcdir)/Mac/Tools |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
228 MACTOOLSSUBDIRS=IDE |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
229 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
230 installmacsubtree: |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
231 @for i in $(MACTOOLSDEST); \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
232 do \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
233 if test ! -d $(DESTDIR)$$i; then \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
234 echo "Creating directory $(DESTDIR)$$i"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
235 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
236 else true; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
237 fi; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
238 done |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
239 @for d in $(MACTOOLSSUBDIRS); \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
240 do \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
241 a=$(MACTOOLSSRC)/$$d; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
242 if test ! -d $$a; then continue; else true; fi; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
243 b=$(DESTDIR)$(MACTOOLSDEST)/$$d; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
244 if test ! -d $$b; then \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
245 echo "Creating directory $$b"; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
246 $(INSTALL) -d -m $(DIRMODE) $$b; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
247 else true; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
248 fi; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
249 done |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
250 @for d in $(MACTOOLSSUBDIRS); \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
251 do \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
252 a=$(MACTOOLSSRC)/$$d; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
253 if test ! -d $$a; then continue; else true; fi; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
254 b=$(DESTDIR)$(MACTOOLSDEST)/$$d; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
255 for i in $$a/*; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
256 do \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
257 case $$i in \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
258 *CVS) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
259 *.svn) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
260 *.py[co]) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
261 *.orig) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
262 *~) ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
263 *.rsrc) \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
264 echo $(CPMAC) $$i $$b ; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
265 $(CPMAC) $$i $$b ; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
266 ;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
267 *) \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
268 if test -d $$i; then continue; fi; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
269 if test -x $$i; then \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
270 echo $(INSTALL_SCRIPT) $$i $$b; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
271 $(INSTALL_SCRIPT) $$i $$b; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
272 else \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
273 echo $(INSTALL_DATA) $$i $$b; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
274 $(INSTALL_DATA) $$i $$b; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
275 fi;; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
276 esac; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
277 done; \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
278 done |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
279 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
280 |
|
48048
96a9ebfee2cd
Fix build issue on OSX 10.4, somehow this wasn't committed before.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47827
diff
changeset
|
281 $(RUNSHARED) @ARCH_RUN_32BIT@ $(BUILDPYTHON) $(CACHERSRC) -v $(DESTDIR)$(MACLIBDEST) $(DESTDIR)$(MACTOOLSDEST) |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
282 $(RUNSHARED) $(BUILDPYTHON) -Wi -tt $(compileall) -d $(MACTOOLSDEST) -x badsyntax $(DESTDIR)$(MACTOOLSDEST) |
|
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
283 $(RUNSHARED) $(BUILDPYTHON) -O -Wi -tt $(compileall) -d $(MACTOOLSDEST) -x badsyntax $(DESTDIR)$(MACTOOLSDEST) |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
284 |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
285 $(INSTALLED_PYTHONAPP): install_Python |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
286 |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
287 installextras: $(srcdir)/Extras.ReadMe.txt $(srcdir)/Extras.install.py |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
288 $(INSTALL) -d "$(DESTDIR)$(PYTHONAPPSDIR)/Extras" |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
289 $(INSTALL) $(srcdir)/Extras.ReadMe.txt "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/ReadMe.txt" |
|
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
290 $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Extras.install.py $(srcdir)/../Demo \ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
291 "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/Demo" |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
292 $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Extras.install.py $(srcdir)/Demo \ |
|
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
293 "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/Demo.Mac" |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
294 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
295 |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
296 checkapplepython: $(srcdir)/Tools/fixapplepython23.py |
|
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
297 @if ! $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Tools/fixapplepython23.py -n; then \ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
298 echo "* WARNING: Apple-installed Python 2.3 will have trouble building extensions from now on."; \ |
|
38646
1b47d030c3fa
Move Mac/OSX/* one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
299 echo "* WARNING: Run $(srcdir)/Tools/fixapplepython23.py with \"sudo\" to fix this."; \ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
300 fi |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
301 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
302 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
303 clean: |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
304 rm pythonw |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
305 cd PythonLauncher && make clean |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
306 cd IDLE && make clean |
|
39853
bb9e914ede05
Tweak Mac/Makefile in to ensure that pythonw gets rebuild when the major version
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38751
diff
changeset
|
307 |
|
bb9e914ede05
Tweak Mac/Makefile in to ensure that pythonw gets rebuild when the major version
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38751
diff
changeset
|
308 Makefile: $(srcdir)/Makefile.in ../config.status |
|
bb9e914ede05
Tweak Mac/Makefile in to ensure that pythonw gets rebuild when the major version
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38751
diff
changeset
|
309 cd .. && CONFIG_FILES=Mac/Makefile CONFIG_HEADERS= $(SHELL) ./config.status |
