Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1 | # 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 | |
| 5 | VERSION=@VERSION@ |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 6 | builddir = .. |
| 7 | srcdir=@srcdir@ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8 | prefix=@prefix@ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9 | LIBDEST=$(prefix)/lib/python$(VERSION) |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 10 | RUNSHARED=@RUNSHARED@ |
| 11 | BUILDEXE=@BUILDEXEEXT@ |
| 12 | BUILDPYTHON=$(builddir)/python$(BUILDEXE) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13 | DESTDIR= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 14 | LDFLAGS=@LDFLAGS@ |
| 15 | FRAMEWORKUNIXTOOLSPREFIX=@FRAMEWORKUNIXTOOLSPREFIX@ |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 16 | PYTHONFRAMEWORK=@PYTHONFRAMEWORK@ |
Ronald Oussoren | f29b6b4 | 2009-03-30 20:00:00 +0000 | [diff] [blame] | 17 | PYTHONFRAMEWORKIDENTIFIER=@PYTHONFRAMEWORKIDENTIFIER@ |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 18 | LIPO_32BIT_FLAGS=@LIPO_32BIT_FLAGS@ |
Ronald Oussoren | 755740f | 2010-02-07 19:56:39 +0000 | [diff] [blame] | 19 | CC=@CC@ |
Ronald Oussoren | 712979d | 2010-04-20 19:51:33 +0000 | [diff] [blame] | 20 | MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ |
| 21 | export MACOSX_DEPLOYMENT_TARGET |
| 22 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 23 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24 | |
| 25 | # These are normally glimpsed from the previous set |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 26 | bindir=$(prefix)/bin |
Ronald Oussoren | 86b33c8 | 2010-04-30 11:41:56 +0000 | [diff] [blame] | 27 | PYTHONAPPSDIR=@FRAMEWORKINSTALLAPPSPREFIX@/$(PYTHONFRAMEWORK) $(VERSION) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 28 | APPINSTALLDIR=$(prefix)/Resources/Python.app |
| 29 | |
| 30 | # Variables for installing the "normal" unix binaries |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 31 | INSTALLED_PYTHONAPP=$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 32 | |
| 33 | # Items more-or-less copied from the main Makefile |
| 34 | DIRMODE=755 |
| 35 | FILEMODE=644 |
| 36 | INSTALL=@INSTALL@ |
| 37 | INSTALL_SYMLINK=ln -fsn |
| 38 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
| 39 | INSTALL_SCRIPT= @INSTALL_SCRIPT@ |
| 40 | INSTALL_DATA=@INSTALL_DATA@ |
| 41 | LN=@LN@ |
| 42 | STRIPFLAG=-s |
| 43 | CPMAC=/Developer/Tools/CpMac |
| 44 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 45 | APPTEMPLATE=$(srcdir)/Resources/app |
Ronald Oussoren | f84d7e9 | 2009-05-19 11:27:25 +0000 | [diff] [blame] | 46 | APPSUBDIRS=MacOS Resources |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 47 | compileall=$(srcdir)/../Lib/compileall.py |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 48 | |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 49 | installapps: install_Python install_pythonw install_PythonLauncher install_IDLE \ |
| 50 | checkapplepython install_versionedtools |
Georg Brandl | fcaf910 | 2008-07-16 02:17:56 +0000 | [diff] [blame] | 51 | |
| 52 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 53 | install_pythonw: pythonw |
| 54 | $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)" |
| 55 | $(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/python$(VERSION)" |
Ronald Oussoren | 38e2d8e | 2009-05-17 10:45:53 +0000 | [diff] [blame] | 56 | ln -sf python$(VERSION) "$(DESTDIR)$(prefix)/bin/python3" |
| 57 | ln -sf pythonw$(VERSION) "$(DESTDIR)$(prefix)/bin/pythonw3" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 58 | ifneq ($(LIPO_32BIT_FLAGS),) |
| 59 | lipo $(LIPO_32BIT_FLAGS) -output $(DESTDIR)$(prefix)/bin/python$(VERSION)-32 pythonw |
| 60 | lipo $(LIPO_32BIT_FLAGS) -output $(DESTDIR)$(prefix)/bin/pythonw$(VERSION)-32 pythonw |
Ronald Oussoren | 01d05ad | 2010-05-05 13:20:31 +0000 | [diff] [blame] | 61 | ln -sf pythonw$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/pythonw3-32" |
| 62 | ln -sf python$(VERSION)-32 "$(DESTDIR)$(prefix)/bin/python3-32" |
Ronald Oussoren | 6f6c562 | 2009-12-24 14:03:19 +0000 | [diff] [blame] | 63 | endif |
Georg Brandl | fcaf910 | 2008-07-16 02:17:56 +0000 | [diff] [blame] | 64 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 65 | # |
| 66 | # Install unix tools in /usr/local/bin. These are just aliases for the |
| 67 | # actual installation inside the framework. |
| 68 | # |
| 69 | installunixtools: |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 70 | if [ ! -d "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ]; then \ |
| 71 | $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ;\ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 72 | fi |
Ronald Oussoren | 38e2d8e | 2009-05-17 10:45:53 +0000 | [diff] [blame] | 73 | for fn in python3 pythonw3 idle3 pydoc3 python3-config \ |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 74 | python$(VERSION) pythonw$(VERSION) idle$(VERSION) \ |
Ronald Oussoren | afbca49 | 2009-05-26 21:18:59 +0000 | [diff] [blame] | 75 | pydoc$(VERSION) python$(VERSION)-config 2to3 \ |
| 76 | 2to3-$(VERSION) ;\ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 77 | do \ |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 78 | ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 79 | done |
| 80 | |
Georg Brandl | fcaf910 | 2008-07-16 02:17:56 +0000 | [diff] [blame] | 81 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 82 | # |
| 83 | # Like installunixtools, but only install links to the versioned binaries. |
| 84 | # |
| 85 | altinstallunixtools: |
| 86 | if [ ! -d "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ]; then \ |
| 87 | $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ;\ |
| 88 | fi |
| 89 | for fn in python$(VERSION) pythonw$(VERSION) idle$(VERSION) \ |
Ronald Oussoren | afbca49 | 2009-05-26 21:18:59 +0000 | [diff] [blame] | 90 | pydoc$(VERSION) python$(VERSION)-config 2to3-$(VERSION);\ |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 91 | do \ |
| 92 | ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\ |
| 93 | done |
| 94 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 95 | # By default most tools are installed without a version in their basename, to |
| 96 | # make it easier to install (and use) several python versions side-by-side move |
| 97 | # the tools to a version-specific name and add the non-versioned name as an |
| 98 | # alias. |
| 99 | install_versionedtools: |
Georg Brandl | fcaf910 | 2008-07-16 02:17:56 +0000 | [diff] [blame] | 100 | for fn in idle pydoc ;\ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 101 | do \ |
Ronald Oussoren | 38e2d8e | 2009-05-17 10:45:53 +0000 | [diff] [blame] | 102 | if [ -h "$(DESTDIR)$(prefix)/bin/$${fn}3" ]; then \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 103 | continue ;\ |
| 104 | fi ;\ |
Ronald Oussoren | 38e2d8e | 2009-05-17 10:45:53 +0000 | [diff] [blame] | 105 | mv "$(DESTDIR)$(prefix)/bin/$${fn}3" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\ |
| 106 | ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}3" ;\ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 107 | done |
Ronald Oussoren | afbca49 | 2009-05-26 21:18:59 +0000 | [diff] [blame] | 108 | mv "$(DESTDIR)$(prefix)/bin/2to3" "$(DESTDIR)$(prefix)/bin/2to3-$(VERSION)" |
Ronald Oussoren | 8e5bda4 | 2009-06-07 15:34:13 +0000 | [diff] [blame] | 109 | ln -sf "2to3-$(VERSION)" "$(DESTDIR)$(prefix)/bin/2to3" |
Ronald Oussoren | 38e2d8e | 2009-05-17 10:45:53 +0000 | [diff] [blame] | 110 | if [ ! -h "$(DESTDIR)$(prefix)/bin/python3-config" ]; then \ |
| 111 | mv "$(DESTDIR)$(prefix)/bin/python3-config" "$(DESTDIR)$(prefix)/bin/python$(VERSION)-config" ;\ |
| 112 | ln -sf "python$(VERSION)-config" "$(DESTDIR)$(prefix)/bin/python3-config" ; \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 113 | fi |
| 114 | |
| 115 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 116 | pythonw: $(srcdir)/Tools/pythonw.c Makefile |
Ronald Oussoren | b366cda | 2010-03-07 09:14:06 +0000 | [diff] [blame] | 117 | $(CC) $(LDFLAGS) -DPYTHONFRAMEWORK='"$(PYTHONFRAMEWORK)"' -o $@ $(srcdir)/Tools/pythonw.c -I.. -I$(srcdir)/../Include ../$(PYTHONFRAMEWORK).framework/Versions/$(VERSION)/$(PYTHONFRAMEWORK) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 118 | |
| 119 | install_PythonLauncher: |
| 120 | cd PythonLauncher && make install DESTDIR=$(DESTDIR) |
| 121 | |
| 122 | install_Python: |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 123 | @for i in "$(PYTHONAPPSDIR)" "$(APPINSTALLDIR)" "$(APPINSTALLDIR)/Contents"; do \ |
| 124 | if test ! -d "$(DESTDIR)$$i"; then \ |
| 125 | echo "Creating directory $(DESTDIR)$$i"; \ |
| 126 | $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$$i"; \ |
| 127 | fi;\ |
| 128 | done |
| 129 | @for i in $(APPSUBDIRS); do \ |
| 130 | if test ! -d "$(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; then \ |
| 131 | echo "Creating directory $(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; \ |
| 132 | $(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(APPINSTALLDIR)/Contents/$$i"; \ |
| 133 | else true; \ |
| 134 | fi; \ |
| 135 | done |
| 136 | @for d in . $(APPSUBDIRS); \ |
| 137 | do \ |
| 138 | a=$(APPTEMPLATE)/$$d; \ |
| 139 | if test ! -d $$a; then continue; else true; fi; \ |
| 140 | b="$(DESTDIR)$(APPINSTALLDIR)/Contents/$$d"; \ |
| 141 | for i in $$a/*; \ |
| 142 | do \ |
| 143 | case $$i in \ |
| 144 | *CVS) ;; \ |
| 145 | *.svn) ;; \ |
| 146 | *.py[co]) ;; \ |
| 147 | *.orig) ;; \ |
| 148 | *~) ;; \ |
| 149 | *idx) \ |
| 150 | echo $(CPMAC) "$$i" $$b; \ |
| 151 | $(CPMAC) "$$i" "$$b"; \ |
| 152 | ;; \ |
| 153 | *) \ |
| 154 | if test -d $$i; then continue; fi; \ |
| 155 | if test -x $$i; then \ |
| 156 | echo $(INSTALL_SCRIPT) "$$i" "$$b"; \ |
| 157 | $(INSTALL_SCRIPT) "$$i" "$$b"; \ |
| 158 | else \ |
| 159 | echo $(INSTALL_DATA) "$$i" "$$b"; \ |
| 160 | $(INSTALL_DATA) "$$i" "$$b"; \ |
| 161 | fi;; \ |
| 162 | esac; \ |
| 163 | done; \ |
| 164 | done |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 165 | $(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)" |
Ronald Oussoren | f29b6b4 | 2009-03-30 20:00:00 +0000 | [diff] [blame] | 166 | sed -e "s!%bundleid%!$(PYTHONFRAMEWORKIDENTIFIER)!g" \ |
| 167 | -e "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) \ |
| 168 | -c 'import platform; print(platform.python_version())'`!g" \ |
| 169 | < "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" \ |
| 170 | > "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist" |
| 171 | rm "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 172 | |
Georg Brandl | fcaf910 | 2008-07-16 02:17:56 +0000 | [diff] [blame] | 173 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 174 | install_IDLE: |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 175 | test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)" |
Ronald Oussoren | 827822e | 2009-02-12 15:01:44 +0000 | [diff] [blame] | 176 | -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -rf "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" |
Ronald Oussoren | af11860 | 2009-01-02 11:48:29 +0000 | [diff] [blame] | 177 | /bin/cp -PR "$(srcdir)/IDLE/IDLE.app" "$(DESTDIR)$(PYTHONAPPSDIR)" |
Ronald Oussoren | 672f62a | 2009-02-12 15:18:15 +0000 | [diff] [blame] | 178 | ln -sf "$(INSTALLED_PYTHONAPP)" "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/Python" |
Ronald Oussoren | af11860 | 2009-01-02 11:48:29 +0000 | [diff] [blame] | 179 | 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 Oussoren | 2160015 | 2008-12-30 12:59:02 +0000 | [diff] [blame] | 180 | 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 Oussoren | 711b578 | 2009-02-12 15:12:03 +0000 | [diff] [blame] | 181 | if [ -f "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" ]; then \ |
| 182 | /bin/cp -p "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" \ |
| 183 | "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" ; \ |
| 184 | sed -e 's!name= IDLE Classic Windows!name= IDLE Classic OSX!g' \ |
| 185 | < "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" \ |
| 186 | > "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" ; \ |
| 187 | rm "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" ; \ |
| 188 | fi |
| 189 | if [ -f "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" ]; then \ |
| 190 | /bin/cp -p "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" \ |
| 191 | "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \ |
| 192 | sed -e 's!zoom-height=<Alt-Key-2>!zoom-height=<Option-Key-0>!g' \ |
| 193 | -e 's!<Alt-Key-!<Option-Key-!g' \ |
| 194 | < "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" \ |
| 195 | > "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" ; \ |
| 196 | rm "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \ |
| 197 | fi |
Benjamin Peterson | de9c869 | 2008-07-01 18:23:09 +0000 | [diff] [blame] | 198 | touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 199 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 200 | $(INSTALLED_PYTHONAPP): install_Python |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 201 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 202 | installextras: $(srcdir)/Extras.ReadMe.txt $(srcdir)/Extras.install.py |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 203 | $(INSTALL) -d "$(DESTDIR)$(PYTHONAPPSDIR)/Extras" |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 204 | $(INSTALL) $(srcdir)/Extras.ReadMe.txt "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/ReadMe.txt" |
| 205 | $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Extras.install.py $(srcdir)/../Demo \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 206 | "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/Demo" |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 207 | $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Extras.install.py $(srcdir)/Demo \ |
| 208 | "$(DESTDIR)$(PYTHONAPPSDIR)/Extras/Demo.Mac" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 209 | |
| 210 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 211 | checkapplepython: $(srcdir)/Tools/fixapplepython23.py |
| 212 | @if ! $(RUNSHARED) $(BUILDPYTHON) $(srcdir)/Tools/fixapplepython23.py -n; then \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 213 | echo "* WARNING: Apple-installed Python 2.3 will have trouble building extensions from now on."; \ |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 214 | echo "* WARNING: Run $(srcdir)/Tools/fixapplepython23.py with \"sudo\" to fix this."; \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 215 | fi |
| 216 | |
| 217 | |
| 218 | clean: |
| 219 | rm pythonw |
| 220 | cd PythonLauncher && make clean |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 221 | |
| 222 | Makefile: $(srcdir)/Makefile.in ../config.status |
| 223 | cd .. && CONFIG_FILES=Mac/Makefile CONFIG_HEADERS= $(SHELL) ./config.status |