2006-06-07 16:06:01 -03:00
|
|
|
prefix=@prefix@
|
|
|
|
CC=@CC@
|
|
|
|
LD=@CC@
|
|
|
|
BASECFLAGS=@BASECFLAGS@
|
|
|
|
OPT=@OPT@
|
|
|
|
CFLAGS=$(BASECFLAGS) $(OPT)
|
|
|
|
LDFLAGS=@LDFLAGS@
|
|
|
|
srcdir= @srcdir@
|
|
|
|
VERSION= @VERSION@
|
2016-02-23 05:45:57 -04:00
|
|
|
LIBDEST=$(prefix)/lib/python$(VERSION)
|
2006-06-07 16:06:01 -03:00
|
|
|
UNIVERSALSDK=@UNIVERSALSDK@
|
|
|
|
builddir= ../..
|
2008-05-02 16:45:11 -03:00
|
|
|
PYTHONFRAMEWORK=@PYTHONFRAMEWORK@
|
2009-12-24 09:30:58 -04:00
|
|
|
LIPO_32BIT_FLAGS=@LIPO_32BIT_FLAGS@
|
|
|
|
|
2006-06-07 16:06:01 -03:00
|
|
|
|
|
|
|
RUNSHARED= @RUNSHARED@
|
|
|
|
BUILDEXE= @BUILDEXEEXT@
|
|
|
|
BUILDPYTHON= $(builddir)/python$(BUILDEXE)
|
|
|
|
|
|
|
|
# Deployment target selected during configure, to be checked
|
|
|
|
# by distutils
|
|
|
|
MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
|
|
|
|
@EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET
|
|
|
|
|
|
|
|
BUNDLEBULDER=$(srcdir)/../../Lib/plat-mac/bundlebuilder.py
|
|
|
|
|
2010-04-30 08:20:14 -03:00
|
|
|
PYTHONAPPSDIR=@FRAMEWORKINSTALLAPPSPREFIX@/$(PYTHONFRAMEWORK) $(VERSION)
|
2006-06-07 16:06:01 -03:00
|
|
|
|
|
|
|
all: IDLE.app
|
|
|
|
|
2016-02-23 05:45:57 -04:00
|
|
|
install: IDLE.app
|
2006-06-07 16:06:01 -03:00
|
|
|
test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
|
|
|
|
-test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
|
2009-01-02 07:46:05 -04:00
|
|
|
/bin/cp -PR IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)"
|
2006-06-07 16:06:01 -03:00
|
|
|
touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
|
2016-02-23 05:45:57 -04:00
|
|
|
if [ -f "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" ]; then \
|
|
|
|
/bin/cp -p "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" \
|
|
|
|
"$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" ; \
|
|
|
|
sed -e 's!name= IDLE Classic Windows!name= IDLE Classic OSX!g' \
|
|
|
|
< "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" \
|
|
|
|
> "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" ; \
|
|
|
|
rm "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" ; \
|
|
|
|
fi
|
|
|
|
if [ -f "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" ]; then \
|
|
|
|
/bin/cp -p "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" \
|
|
|
|
"$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
|
|
|
|
sed -e 's!zoom-height=<Alt-Key-2>!zoom-height=<Option-Key-0>!g' \
|
|
|
|
-e 's!<Alt-Key-!<Option-Key-!g' \
|
|
|
|
< "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" \
|
|
|
|
> "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" ; \
|
|
|
|
rm "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
|
|
|
|
fi
|
2006-06-07 16:06:01 -03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf IDLE.app
|
|
|
|
|
|
|
|
IDLE.app: \
|
|
|
|
$(srcdir)/../Icons/IDLE.icns $(srcdir)/idlemain.py \
|
|
|
|
$(srcdir)/../Icons/PythonSource.icns \
|
2006-06-07 16:38:53 -03:00
|
|
|
$(srcdir)/../Icons/PythonCompiled.icns Info.plist
|
2006-06-07 16:06:01 -03:00
|
|
|
rm -fr IDLE.app
|
2008-07-18 02:48:03 -03:00
|
|
|
$(RUNSHARED) @ARCH_RUN_32BIT@ $(BUILDPYTHON) $(BUNDLEBULDER) \
|
2006-06-07 16:06:01 -03:00
|
|
|
--builddir=. \
|
|
|
|
--name=IDLE \
|
|
|
|
--link-exec \
|
2006-06-07 16:38:53 -03:00
|
|
|
--plist=Info.plist \
|
2006-06-07 16:06:01 -03:00
|
|
|
--mainprogram=$(srcdir)/idlemain.py \
|
|
|
|
--iconfile=$(srcdir)/../Icons/IDLE.icns \
|
|
|
|
--resource=$(srcdir)/../Icons/PythonSource.icns \
|
|
|
|
--resource=$(srcdir)/../Icons/PythonCompiled.icns \
|
2009-12-24 09:30:58 -04:00
|
|
|
--python=$(prefix)/Resources/Python.app/Contents/MacOS/Python \
|
2006-06-07 16:06:01 -03:00
|
|
|
build
|
2009-12-24 09:30:58 -04:00
|
|
|
ifneq ($(LIPO_32BIT_FLAGS),)
|
|
|
|
rm "IDLE.app/Contents/MacOS/Python"
|
|
|
|
lipo $(LIPO_32BIT_FLAGS) -output "IDLE.app/Contents/MacOS/Python" "$(BUILDPYTHON)"
|
|
|
|
endif
|
2006-06-07 16:38:53 -03:00
|
|
|
|
|
|
|
Info.plist: $(srcdir)/Info.plist.in
|
|
|
|
sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist
|
|
|
|
|