blob: 1f42bbe96e64ac35c1ba3b272cfcf7cc8c7eaf4f [file] [log] [blame]
Thomas Wouters477c8d52006-05-27 19:21:47 +00001# This file can be invoked from the various frameworkinstall... targets in the
2# main Makefile. The next couple of variables are overridden on the
3# commandline in that case.
4
5VERSION=@VERSION@
Thomas Wouters73e5a5b2006-06-08 15:35:45 +00006builddir = ..
7srcdir=@srcdir@
Thomas Wouters0e3f5912006-08-11 14:57:12 +00008prefix=@prefix@
Thomas Wouters477c8d52006-05-27 19:21:47 +00009LIBDEST=$(prefix)/lib/python$(VERSION)
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000010RUNSHARED=@RUNSHARED@
11BUILDEXE=@BUILDEXEEXT@
12BUILDPYTHON=$(builddir)/python$(BUILDEXE)
Thomas Wouters477c8d52006-05-27 19:21:47 +000013DESTDIR=
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000014LDFLAGS=@LDFLAGS@
15FRAMEWORKUNIXTOOLSPREFIX=@FRAMEWORKUNIXTOOLSPREFIX@
Christian Heimes81ee3ef2008-05-04 22:42:01 +000016PYTHONFRAMEWORK=@PYTHONFRAMEWORK@
Ronald Oussorenf29b6b42009-03-30 20:00:00 +000017PYTHONFRAMEWORKIDENTIFIER=@PYTHONFRAMEWORKIDENTIFIER@
Christian Heimes81ee3ef2008-05-04 22:42:01 +000018
Thomas Wouters477c8d52006-05-27 19:21:47 +000019
20# These are normally glimpsed from the previous set
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000021bindir=$(prefix)/bin
Christian Heimes81ee3ef2008-05-04 22:42:01 +000022PYTHONAPPSDIR=/Applications/$(PYTHONFRAMEWORK) $(VERSION)
Thomas Wouters477c8d52006-05-27 19:21:47 +000023APPINSTALLDIR=$(prefix)/Resources/Python.app
24
25# Variables for installing the "normal" unix binaries
Christian Heimes81ee3ef2008-05-04 22:42:01 +000026INSTALLED_PYTHONAPP=$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)
Thomas Wouters477c8d52006-05-27 19:21:47 +000027
28# Items more-or-less copied from the main Makefile
29DIRMODE=755
30FILEMODE=644
31INSTALL=@INSTALL@
32INSTALL_SYMLINK=ln -fsn
33INSTALL_PROGRAM=@INSTALL_PROGRAM@
34INSTALL_SCRIPT= @INSTALL_SCRIPT@
35INSTALL_DATA=@INSTALL_DATA@
36LN=@LN@
37STRIPFLAG=-s
38CPMAC=/Developer/Tools/CpMac
39
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000040APPTEMPLATE=$(srcdir)/Resources/app
Ronald Oussorenf84d7e92009-05-19 11:27:25 +000041APPSUBDIRS=MacOS Resources
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000042compileall=$(srcdir)/../Lib/compileall.py
Thomas Wouters477c8d52006-05-27 19:21:47 +000043
Georg Brandl59f8d832008-07-19 09:58:13 +000044installapps: install_Python install_PythonLauncher install_IDLE \
45 checkapplepython install_pythonw install_versionedtools
Thomas Wouters477c8d52006-05-27 19:21:47 +000046
Georg Brandl59f8d832008-07-19 09:58:13 +000047installapps4way: install_Python4way install_PythonLauncher \
Ronald Oussoren672f62a2009-02-12 15:18:15 +000048 install_IDLE4way install_pythonw4way install_versionedtools
Georg Brandlfcaf9102008-07-16 02:17:56 +000049
50
Thomas Wouters477c8d52006-05-27 19:21:47 +000051install_pythonw: pythonw
52 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)"
53 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/python$(VERSION)"
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +000054 ln -sf python$(VERSION) "$(DESTDIR)$(prefix)/bin/python3"
55 ln -sf pythonw$(VERSION) "$(DESTDIR)$(prefix)/bin/pythonw3"
Thomas Wouters477c8d52006-05-27 19:21:47 +000056
Georg Brandlfcaf9102008-07-16 02:17:56 +000057
58# Install 3 variants of python/pythonw:
59# - 32-bit (i386 and ppc)
60# - 64-bit (x86_64 and ppc64)
61# - all (all four architectures)
62# - Make 'python' and 'pythonw' aliases for the 32-bit variant
63install_pythonw4way: pythonw-32 pythonw-64 pythonw
64 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw-64 "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)-64"
65 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw-64 "$(DESTDIR)$(prefix)/bin/python$(VERSION)-64"
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +000066 ln -sf python$(VERSION)-64 "$(DESTDIR)$(prefix)/bin/python3-64"
67 ln -sf pythonw$(VERSION)-64 "$(DESTDIR)$(prefix)/bin/pythonw3-64"
Georg Brandlfcaf9102008-07-16 02:17:56 +000068
69 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw-32 "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)-32"
70 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw-32 "$(DESTDIR)$(prefix)/bin/python$(VERSION)-32"
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +000071 ln -sf python$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/python3-32"
72 ln -sf pythonw$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/pythonw3-32"
Georg Brandlfcaf9102008-07-16 02:17:56 +000073
74 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)-all"
75 $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/python$(VERSION)-all"
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +000076 ln -sf python$(VERSION)-all "$(DESTDIR)$(prefix)/bin/python3-all"
77 ln -sf pythonw$(VERSION)-all "$(DESTDIR)$(prefix)/bin/pythonw3-all"
Georg Brandlfcaf9102008-07-16 02:17:56 +000078
79 ln -sf pythonw$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)"
80 ln -sf python$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/python$(VERSION)"
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +000081 ln -sf pythonw$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/pythonw3"
82 ln -sf python$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/python3"
Georg Brandlfcaf9102008-07-16 02:17:56 +000083
Thomas Wouters477c8d52006-05-27 19:21:47 +000084#
85# Install unix tools in /usr/local/bin. These are just aliases for the
86# actual installation inside the framework.
87#
88installunixtools:
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000089 if [ ! -d "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ]; then \
90 $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ;\
Thomas Wouters477c8d52006-05-27 19:21:47 +000091 fi
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +000092 for fn in python3 pythonw3 idle3 pydoc3 python3-config \
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000093 python$(VERSION) pythonw$(VERSION) idle$(VERSION) \
Ronald Oussorenafbca492009-05-26 21:18:59 +000094 pydoc$(VERSION) python$(VERSION)-config 2to3 \
95 2to3-$(VERSION) ;\
Thomas Wouters477c8d52006-05-27 19:21:47 +000096 do \
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000097 ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\
Thomas Wouters477c8d52006-05-27 19:21:47 +000098 done
99
Georg Brandlfcaf9102008-07-16 02:17:56 +0000100
101# TODO: install symlinks for -32, -64 and -all as well
102installunixtools4way: installunixtools
103
104
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000105#
106# Like installunixtools, but only install links to the versioned binaries.
107#
108altinstallunixtools:
109 if [ ! -d "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ]; then \
110 $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ;\
111 fi
112 for fn in python$(VERSION) pythonw$(VERSION) idle$(VERSION) \
Ronald Oussorenafbca492009-05-26 21:18:59 +0000113 pydoc$(VERSION) python$(VERSION)-config 2to3-$(VERSION);\
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000114 do \
115 ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\
116 done
117
Georg Brandlfcaf9102008-07-16 02:17:56 +0000118# TODO: -32, -64 and -all variants
119altinstallunixtools4way: altinstallunixtools
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000120
Thomas Wouters477c8d52006-05-27 19:21:47 +0000121# By default most tools are installed without a version in their basename, to
122# make it easier to install (and use) several python versions side-by-side move
123# the tools to a version-specific name and add the non-versioned name as an
124# alias.
125install_versionedtools:
Georg Brandlfcaf9102008-07-16 02:17:56 +0000126 for fn in idle pydoc ;\
Thomas Wouters477c8d52006-05-27 19:21:47 +0000127 do \
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +0000128 if [ -h "$(DESTDIR)$(prefix)/bin/$${fn}3" ]; then \
Thomas Wouters477c8d52006-05-27 19:21:47 +0000129 continue ;\
130 fi ;\
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +0000131 mv "$(DESTDIR)$(prefix)/bin/$${fn}3" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\
132 ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}3" ;\
Thomas Wouters477c8d52006-05-27 19:21:47 +0000133 done
Ronald Oussorenafbca492009-05-26 21:18:59 +0000134 mv "$(DESTDIR)$(prefix)/bin/2to3" "$(DESTDIR)$(prefix)/bin/2to3-$(VERSION)"
Ronald Oussoren8e5bda42009-06-07 15:34:13 +0000135 ln -sf "2to3-$(VERSION)" "$(DESTDIR)$(prefix)/bin/2to3"
Ronald Oussoren38e2d8e2009-05-17 10:45:53 +0000136 if [ ! -h "$(DESTDIR)$(prefix)/bin/python3-config" ]; then \
137 mv "$(DESTDIR)$(prefix)/bin/python3-config" "$(DESTDIR)$(prefix)/bin/python$(VERSION)-config" ;\
138 ln -sf "python$(VERSION)-config" "$(DESTDIR)$(prefix)/bin/python3-config" ; \
Thomas Wouters477c8d52006-05-27 19:21:47 +0000139 fi
140
141
Thomas Wouters89f507f2006-12-13 04:49:30 +0000142pythonw: $(srcdir)/Tools/pythonw.c Makefile
Thomas Wouters477c8d52006-05-27 19:21:47 +0000143 $(CC) $(LDFLAGS) -o $@ $(srcdir)/Tools/pythonw.c \
Christian Heimes81ee3ef2008-05-04 22:42:01 +0000144 -DPYTHONWEXECUTABLE='"$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"'
Thomas Wouters477c8d52006-05-27 19:21:47 +0000145
Georg Brandlfcaf9102008-07-16 02:17:56 +0000146pythonw-32: $(srcdir)/Tools/pythonw.c Makefile
Benjamin Peterson5a0a85e2010-03-19 21:38:46 +0000147 $(CC) $(LDFLAGS) -o pythonw-tmp.o $(srcdir)/Tools/pythonw.c \
148 -DPYTHONWEXECUTABLE='"$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-32"' ;\
149 lipo @LIPO_32BIT_FLAGS@ -output $@ pythonw-tmp.o ; rm pythonw-tmp.o
Georg Brandlfcaf9102008-07-16 02:17:56 +0000150
151pythonw-64: $(srcdir)/Tools/pythonw.c Makefile
Benjamin Peterson5a0a85e2010-03-19 21:38:46 +0000152 $(CC) $(LDFLAGS) -o pythonw-tmp.o $(srcdir)/Tools/pythonw.c \
153 -DPYTHONWEXECUTABLE='"$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-64"' ;\
154 lipo @LIPO_64BIT_FLAGS@ -output $@ pythonw-tmp.o ; rm pythonw-tmp.o
Thomas Wouters477c8d52006-05-27 19:21:47 +0000155
156install_PythonLauncher:
157 cd PythonLauncher && make install DESTDIR=$(DESTDIR)
158
159install_Python:
Thomas Wouters477c8d52006-05-27 19:21:47 +0000160 @for i in "$(PYTHONAPPSDIR)" "$(APPINSTALLDIR)" "$(APPINSTALLDIR)/Contents"; do \
161 if test ! -d "$(DESTDIR)$$i"; then \
162 echo "Creating directory $(DESTDIR)$$i"; \
163 $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$$i"; \
164 fi;\
165 done
166 @for i in $(APPSUBDIRS); do \
167 if test ! -d "$(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; then \
168 echo "Creating directory $(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; \
169 $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; \
170 else true; \
171 fi; \
172 done
173 @for d in . $(APPSUBDIRS); \
174 do \
175 a=$(APPTEMPLATE)/$$d; \
176 if test ! -d $$a; then continue; else true; fi; \
177 b="$(DESTDIR)$(APPINSTALLDIR)/Contents/$$d"; \
178 for i in $$a/*; \
179 do \
180 case $$i in \
181 *CVS) ;; \
182 *.svn) ;; \
183 *.py[co]) ;; \
184 *.orig) ;; \
185 *~) ;; \
186 *idx) \
187 echo $(CPMAC) "$$i" $$b; \
188 $(CPMAC) "$$i" "$$b"; \
189 ;; \
190 *) \
191 if test -d $$i; then continue; fi; \
192 if test -x $$i; then \
193 echo $(INSTALL_SCRIPT) "$$i" "$$b"; \
194 $(INSTALL_SCRIPT) "$$i" "$$b"; \
195 else \
196 echo $(INSTALL_DATA) "$$i" "$$b"; \
197 $(INSTALL_DATA) "$$i" "$$b"; \
198 fi;; \
199 esac; \
200 done; \
201 done
Christian Heimes81ee3ef2008-05-04 22:42:01 +0000202 $(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"
Ronald Oussorenf29b6b42009-03-30 20:00:00 +0000203 sed -e "s!%bundleid%!$(PYTHONFRAMEWORKIDENTIFIER)!g" \
204 -e "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) \
205 -c 'import platform; print(platform.python_version())'`!g" \
206 < "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" \
207 > "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist"
208 rm "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in"
Thomas Wouters477c8d52006-05-27 19:21:47 +0000209
Georg Brandlfcaf9102008-07-16 02:17:56 +0000210install_Python4way: install_Python
Benjamin Peterson5a0a85e2010-03-19 21:38:46 +0000211 lipo @LIPO_32BIT_FLAGS@ -output "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-32" "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"
212 lipo @LIPO_64BIT_FLAGS@ -output "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-64" "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"
Georg Brandlfcaf9102008-07-16 02:17:56 +0000213
214
215
Thomas Wouters477c8d52006-05-27 19:21:47 +0000216install_IDLE:
Benjamin Petersonde9c8692008-07-01 18:23:09 +0000217 test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
Ronald Oussoren827822e2009-02-12 15:01:44 +0000218 -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -rf "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
Ronald Oussorenaf118602009-01-02 11:48:29 +0000219 /bin/cp -PR "$(srcdir)/IDLE/IDLE.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
Ronald Oussoren672f62a2009-02-12 15:18:15 +0000220 ln -sf "$(INSTALLED_PYTHONAPP)" "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/Python"
Ronald Oussorenaf118602009-01-02 11:48:29 +0000221 sed -e "s!%prefix%!$(prefix)!g" -e 's!%exe%!$(PYTHONFRAMEWORK)!g' < "$(srcdir)/IDLE/IDLE.app/Contents/MacOS/IDLE" > "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/IDLE"
Ronald Oussoren21600152008-12-30 12:59:02 +0000222 sed "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print(platform.python_version())'`!g" < "$(srcdir)/IDLE/IDLE.app/Contents/Info.plist" > "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/Info.plist"
Ronald Oussoren711b5782009-02-12 15:12:03 +0000223 if [ -f "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" ]; then \
224 /bin/cp -p "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" \
225 "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" ; \
226 sed -e 's!name= IDLE Classic Windows!name= IDLE Classic OSX!g' \
227 < "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" \
228 > "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" ; \
229 rm "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" ; \
230 fi
231 if [ -f "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" ]; then \
232 /bin/cp -p "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" \
233 "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
234 sed -e 's!zoom-height=<Alt-Key-2>!zoom-height=<Option-Key-0>!g' \
235 -e 's!<Alt-Key-!<Option-Key-!g' \
236 < "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" \
237 > "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" ; \
238 rm "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
239 fi
Benjamin Petersonde9c8692008-07-01 18:23:09 +0000240 touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
Thomas Wouters477c8d52006-05-27 19:21:47 +0000241
Ronald Oussoren672f62a2009-02-12 15:18:15 +0000242install_IDLE4way: install_IDLE
243 ln -sf "$(INSTALLED_PYTHONAPP)-32" "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/Python"
244 sed -e "s!%prefix%!$(prefix)!g" -e 's!%exe%!$(PYTHONFRAMEWORK)-32!g' < "$(srcdir)/IDLE/IDLE.app/Contents/MacOS/IDLE" > "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/IDLE"
245 touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
246
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000247$(INSTALLED_PYTHONAPP): install_Python
Thomas Wouters477c8d52006-05-27 19:21:47 +0000248
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000249installextras: $(srcdir)/Extras.ReadMe.txt $(srcdir)/Extras.install.py
Thomas Wouters477c8d52006-05-27 19:21:47 +0000250 $(INSTALL) -d "$(DESTDIR)$(PYTHONAPPSDIR)/Extras"
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000251 $(INSTALL) $(srcdir)/Extras.ReadMe.txt "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/ReadMe.txt"
252 $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Extras.install.py $(srcdir)/../Demo \
Thomas Wouters477c8d52006-05-27 19:21:47 +0000253 "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/Demo"
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000254 $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Extras.install.py $(srcdir)/Demo \
255 "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/Demo.Mac"
Thomas Wouters477c8d52006-05-27 19:21:47 +0000256
257
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000258checkapplepython: $(srcdir)/Tools/fixapplepython23.py
259 @if ! $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Tools/fixapplepython23.py -n; then \
Thomas Wouters477c8d52006-05-27 19:21:47 +0000260 echo "* WARNING: Apple-installed Python 2.3 will have trouble building extensions from now on."; \
Thomas Wouters73e5a5b2006-06-08 15:35:45 +0000261 echo "* WARNING: Run $(srcdir)/Tools/fixapplepython23.py with \"sudo\" to fix this."; \
Thomas Wouters477c8d52006-05-27 19:21:47 +0000262 fi
263
264
265clean:
266 rm pythonw
267 cd PythonLauncher && make clean
Thomas Wouters89f507f2006-12-13 04:49:30 +0000268
269Makefile: $(srcdir)/Makefile.in ../config.status
270 cd .. && CONFIG_FILES=Mac/Makefile CONFIG_HEADERS= $(SHELL) ./config.status