Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame^] | 1 | prefix=@prefix@ |
| 2 | CC=@CC@ |
| 3 | LD=@CC@ |
| 4 | BASECFLAGS=@BASECFLAGS@ |
| 5 | OPT=@OPT@ |
| 6 | CFLAGS=$(BASECFLAGS) $(OPT) |
| 7 | LDFLAGS=@LDFLAGS@ |
| 8 | srcdir= @srcdir@ |
| 9 | VERSION= @VERSION@ |
| 10 | UNIVERSALSDK=@UNIVERSALSDK@ |
| 11 | builddir= ../../.. |
| 12 | |
| 13 | RUNSHARED= @RUNSHARED@ |
| 14 | BUILDEXE= @BUILDEXEEXT@ |
| 15 | BUILDPYTHON= ../../../python$(BUILDEXE) |
| 16 | |
| 17 | # Deployment target selected during configure, to be checked |
| 18 | # by distutils |
| 19 | MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ |
| 20 | @EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET |
| 21 | |
| 22 | BUNDLEBULDER=$(srcdir)/../../../Lib/plat-mac/bundlebuilder.py |
| 23 | |
| 24 | PYTHONAPPSDIR=/Applications/MacPython $(VERSION) |
| 25 | |
| 26 | all: IDLE.app |
| 27 | |
| 28 | install: IDLE.app |
| 29 | test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)" |
| 30 | -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" |
| 31 | cp -PR IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)" |
| 32 | touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" |
| 33 | |
| 34 | clean: |
| 35 | rm -rf IDLE.app |
| 36 | |
| 37 | IDLE.app: \ |
| 38 | $(srcdir)/../Icons/IDLE.icns $(srcdir)/idlemain.py \ |
| 39 | $(srcdir)/../Icons/PythonSource.icns \ |
| 40 | $(srcdir)/../Icons/PythonCompiled.icns |
| 41 | rm -fr IDLE.app |
| 42 | $(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \ |
| 43 | --builddir=. \ |
| 44 | --name=IDLE \ |
| 45 | --link-exec \ |
| 46 | --plist=$(srcdir)/Info.plist \ |
| 47 | --mainprogram=$(srcdir)/idlemain.py \ |
| 48 | --iconfile=$(srcdir)/../Icons/IDLE.icns \ |
| 49 | --resource=$(srcdir)/../Icons/PythonSource.icns \ |
| 50 | --resource=$(srcdir)/../Icons/PythonCompiled.icns \ |
| 51 | --python=$(prefix)/Resources/Python.app/Contents/MacOS/Python \ |
| 52 | build |