PageRenderTime 26ms CodeModel.GetById 17ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

/Mac/IDLE/Makefile.in

http://unladen-swallow.googlecode.com/
Autoconf | 60 lines | 47 code | 11 blank | 2 comment | 3 complexity | e49e61df3acab3c7731a9ac9a0d0ee9d MD5 | raw file
 1prefix=@prefix@
 2CC=@CC@
 3LD=@CC@
 4BASECFLAGS=@BASECFLAGS@
 5OPT=@OPT@
 6CFLAGS=$(BASECFLAGS) $(OPT)
 7LDFLAGS=@LDFLAGS@
 8srcdir=         @srcdir@
 9VERSION=	@VERSION@
10UNIVERSALSDK=@UNIVERSALSDK@
11builddir=	../..
12PYTHONFRAMEWORK=@PYTHONFRAMEWORK@
13
14RUNSHARED=      @RUNSHARED@
15BUILDEXE=       @BUILDEXEEXT@
16BUILDPYTHON=    $(builddir)/python$(BUILDEXE)
17
18# Deployment target selected during configure, to be checked
19# by distutils  
20MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
21@EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET
22
23BUNDLEBULDER=$(srcdir)/../../Lib/plat-mac/bundlebuilder.py
24
25PYTHONAPPSDIR=/Applications/$(PYTHONFRAMEWORK) $(VERSION)
26
27all: IDLE.app
28
29install: 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"
36
37clean:
38	rm -rf IDLE.app
39
40IDLE.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
56
57
58Info.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
60