/Mac/PythonLauncher/Makefile.in

http://unladen-swallow.googlecode.com/ · Autoconf · 82 lines · 63 code · 17 blank · 2 comment · 2 complexity · 5d590e96607f84b7898d82d0cf7ab045 MD5 · raw file

  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. RUNSHARED= @RUNSHARED@
  12. BUILDEXE= @BUILDEXEEXT@
  13. BUILDPYTHON= $(builddir)/python$(BUILDEXE)
  14. PYTHONFRAMEWORK=@PYTHONFRAMEWORK@
  15. # Deployment target selected during configure, to be checked
  16. # by distutils
  17. MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
  18. @EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET
  19. BUNDLEBULDER=$(srcdir)/../../Lib/plat-mac/bundlebuilder.py
  20. PYTHONAPPSDIR=/Applications/$(PYTHONFRAMEWORK) $(VERSION)
  21. OBJECTS=FileSettings.o MyAppDelegate.o MyDocument.o PreferencesWindowController.o doscript.o main.o
  22. all: Python\ Launcher.app
  23. install: Python\ Launcher.app
  24. test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
  25. -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
  26. /bin/cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
  27. touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
  28. clean:
  29. rm -f *.o "Python Launcher"
  30. rm -rf "Python Launcher.app"
  31. Python\ Launcher.app: Info.plist \
  32. Python\ Launcher $(srcdir)/../Icons/PythonLauncher.icns \
  33. $(srcdir)/../Icons/PythonSource.icns \
  34. $(srcdir)/../Icons/PythonCompiled.icns \
  35. $(srcdir)/factorySettings.plist
  36. rm -fr "Python Launcher.app"
  37. $(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \
  38. --builddir=. \
  39. --name="Python Launcher" \
  40. --executable="Python Launcher" \
  41. --iconfile=$(srcdir)/../Icons/PythonLauncher.icns \
  42. --bundle-id=org.python.PythonLauncher \
  43. --resource=$(srcdir)/../Icons/PythonSource.icns \
  44. --resource=$(srcdir)/../Icons/PythonCompiled.icns \
  45. --resource=$(srcdir)/English.lproj \
  46. --resource=$(srcdir)/factorySettings.plist \
  47. --plist Info.plist \
  48. build
  49. find "Python Launcher.app" -name '.svn' -print0 | xargs -0 rm -r
  50. FileSettings.o: $(srcdir)/FileSettings.m
  51. $(CC) $(CFLAGS) -o $@ -c $(srcdir)/FileSettings.m
  52. MyAppDelegate.o: $(srcdir)/MyAppDelegate.m
  53. $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyAppDelegate.m
  54. MyDocument.o: $(srcdir)/MyDocument.m
  55. $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyDocument.m
  56. PreferencesWindowController.o: $(srcdir)/PreferencesWindowController.m
  57. $(CC) $(CFLAGS) -o $@ -c $(srcdir)/PreferencesWindowController.m
  58. doscript.o: $(srcdir)/doscript.m
  59. $(CC) $(CFLAGS) -o $@ -c $(srcdir)/doscript.m
  60. main.o: $(srcdir)/main.m
  61. $(CC) $(CFLAGS) -o $@ -c $(srcdir)/main.m
  62. Python\ Launcher: $(OBJECTS)
  63. $(CC) $(LDFLAGS) -o "Python Launcher" $(OBJECTS) -framework AppKit -framework Carbon
  64. Info.plist: $(srcdir)/Info.plist.in
  65. sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist