Issue #6985: number of range() items should be constrained to lie
[python.git] / Mac / IDLE / Makefile.in
blob496c139e721c860a5dbf3509d51c5083cc887b76
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 PYTHONFRAMEWORK=@PYTHONFRAMEWORK@
14 RUNSHARED= @RUNSHARED@
15 BUILDEXE= @BUILDEXEEXT@
16 BUILDPYTHON= $(builddir)/python$(BUILDEXE)
18 # Deployment target selected during configure, to be checked
19 # by distutils
20 MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
21 @EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET
23 BUNDLEBULDER=$(srcdir)/../../Lib/plat-mac/bundlebuilder.py
25 PYTHONAPPSDIR=/Applications/$(PYTHONFRAMEWORK) $(VERSION)
27 all: IDLE.app
29 install: IDLE.app $(srcdir)/config-main.def $(srcdir)/config-extensions.def
30 test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
31 -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
32 /bin/cp -PR IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)"
33 touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
34 /bin/cp $(srcdir)/config-main.def "$(DESTDIR)$(prefix)/lib/python$(VERSION)/idlelib/config-main.def"
35 /bin/cp $(srcdir)/config-extensions.def "$(DESTDIR)$(prefix)/lib/python$(VERSION)/idlelib/config-extensions.def"
37 clean:
38 rm -rf IDLE.app
40 IDLE.app: \
41 $(srcdir)/../Icons/IDLE.icns $(srcdir)/idlemain.py \
42 $(srcdir)/../Icons/PythonSource.icns \
43 $(srcdir)/../Icons/PythonCompiled.icns Info.plist
44 rm -fr IDLE.app
45 $(RUNSHARED) @ARCH_RUN_32BIT@ $(BUILDPYTHON) $(BUNDLEBULDER) \
46 --builddir=. \
47 --name=IDLE \
48 --link-exec \
49 --plist=Info.plist \
50 --mainprogram=$(srcdir)/idlemain.py \
51 --iconfile=$(srcdir)/../Icons/IDLE.icns \
52 --resource=$(srcdir)/../Icons/PythonSource.icns \
53 --resource=$(srcdir)/../Icons/PythonCompiled.icns \
54 --python=$(prefix)/Resources/Python.app/Contents/MacOS/$(PYTHONFRAMEWORK)`test -f "$(DESTDIR)$(prefix)/Resources/Python.app/Contents/MacOS/$(PYTHONFRAMEWORK)-32" && echo "-32"` \
55 build
58 Info.plist: $(srcdir)/Info.plist.in
59 sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist