~malept/ubuntu/lucid/python2.6/dev-dependency-fix

« back to all changes in this revision

Viewing changes to Mac/PythonLauncher/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-13 12:51:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090213125100-uufgcb9yeqzujpqw
Tags: upstream-2.6.1
ImportĀ upstreamĀ versionĀ 2.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CC=@CC@
 
2
LD=@CC@
 
3
BASECFLAGS=@BASECFLAGS@
 
4
OPT=@OPT@
 
5
CFLAGS=$(BASECFLAGS) $(OPT)
 
6
LDFLAGS=@LDFLAGS@
 
7
srcdir=         @srcdir@
 
8
VERSION=        @VERSION@
 
9
UNIVERSALSDK=@UNIVERSALSDK@
 
10
builddir=       ../..
 
11
 
 
12
RUNSHARED=      @RUNSHARED@
 
13
BUILDEXE=       @BUILDEXEEXT@
 
14
BUILDPYTHON=    $(builddir)/python$(BUILDEXE)
 
15
PYTHONFRAMEWORK=@PYTHONFRAMEWORK@
 
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/$(PYTHONFRAMEWORK) $(VERSION)
 
25
OBJECTS=FileSettings.o MyAppDelegate.o MyDocument.o PreferencesWindowController.o doscript.o main.o
 
26
 
 
27
all: Python\ Launcher.app
 
28
 
 
29
install: Python\ Launcher.app
 
30
        test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
 
31
        -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
 
32
        cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
 
33
        touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
 
34
 
 
35
clean:
 
36
        rm -f *.o "Python Launcher"
 
37
        rm -rf "Python Launcher.app"
 
38
 
 
39
Python\ Launcher.app:  Info.plist \
 
40
                Python\ Launcher $(srcdir)/../Icons/PythonLauncher.icns \
 
41
                $(srcdir)/../Icons/PythonSource.icns \
 
42
                $(srcdir)/../Icons/PythonCompiled.icns \
 
43
                $(srcdir)/factorySettings.plist
 
44
        rm -fr "Python Launcher.app"
 
45
        $(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \
 
46
                --builddir=. \
 
47
                --name="Python Launcher" \
 
48
                --executable="Python Launcher" \
 
49
                --iconfile=$(srcdir)/../Icons/PythonLauncher.icns \
 
50
                --bundle-id=org.python.PythonLauncher \
 
51
                --resource=$(srcdir)/../Icons/PythonSource.icns \
 
52
                --resource=$(srcdir)/../Icons/PythonCompiled.icns \
 
53
                --resource=$(srcdir)/English.lproj \
 
54
                --resource=$(srcdir)/factorySettings.plist \
 
55
                --plist Info.plist \
 
56
                build
 
57
        find "Python Launcher.app" -name '.svn' -print0 | xargs -0 rm -r
 
58
                
 
59
 
 
60
FileSettings.o: $(srcdir)/FileSettings.m
 
61
        $(CC) $(CFLAGS) -o $@ -c $(srcdir)/FileSettings.m
 
62
 
 
63
MyAppDelegate.o: $(srcdir)/MyAppDelegate.m
 
64
        $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyAppDelegate.m
 
65
 
 
66
MyDocument.o: $(srcdir)/MyDocument.m
 
67
        $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyDocument.m
 
68
 
 
69
PreferencesWindowController.o: $(srcdir)/PreferencesWindowController.m
 
70
        $(CC) $(CFLAGS) -o $@ -c $(srcdir)/PreferencesWindowController.m
 
71
 
 
72
doscript.o: $(srcdir)/doscript.m
 
73
        $(CC) $(CFLAGS) -o $@ -c $(srcdir)/doscript.m
 
74
 
 
75
main.o: $(srcdir)/main.m
 
76
        $(CC) $(CFLAGS) -o $@ -c $(srcdir)/main.m
 
77
 
 
78
Python\ Launcher: $(OBJECTS)
 
79
        $(CC) $(LDFLAGS) -o "Python Launcher" $(OBJECTS) -framework AppKit -framework Carbon
 
80
 
 
81
Info.plist: $(srcdir)/Info.plist.in
 
82
        sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist