blob: a96e7eff52a0c0ecef295bacc5a3cba48a95ae6f [file] [log] [blame]
Thomas Wouters477c8d52006-05-27 19:21:47 +00001prefix=@prefix@
2CC=@CC@
3LD=@CC@
4BASECFLAGS=@BASECFLAGS@
5OPT=@OPT@
6CFLAGS=$(BASECFLAGS) $(OPT)
7LDFLAGS=@LDFLAGS@
8srcdir= @srcdir@
9VERSION= @VERSION@
10UNIVERSALSDK=@UNIVERSALSDK@
11builddir= ../../..
12
13RUNSHARED= @RUNSHARED@
14BUILDEXE= @BUILDEXEEXT@
15BUILDPYTHON= ../../../python$(BUILDEXE)
16
17# Deployment target selected during configure, to be checked
18# by distutils
19MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
20@EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET
21
22BUNDLEBULDER=$(srcdir)/../../../Lib/plat-mac/bundlebuilder.py
23
24PYTHONAPPSDIR=/Applications/MacPython $(VERSION)
25
26all: IDLE.app
27
28install: 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
34clean:
35 rm -rf IDLE.app
36
37IDLE.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