Advertisement
Guest User

Untitled

a guest
Feb 16th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 11.94 KB | None | 0 0
  1. # Makefile for program source directory in GNU NLS utilities package.
  2. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
  3. # Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
  4. #
  5. # This file may be copied and used freely without restrictions.  It may
  6. # be used in projects which are not available under a GNU Public License,
  7. # but which still want to provide support for the GNU gettext functionality.
  8. #
  9. # - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
  10. #   instead of PACKAGE and to look for po2tbl in ./ not in intl/
  11. #
  12. # - Modified by jacob berkman <jacob@ximian.com> to install
  13. #   Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
  14. #
  15. # - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
  16. #
  17. # We have the following line for use by intltoolize:
  18. # INTLTOOL_MAKEFILE
  19.  
  20. GETTEXT_PACKAGE = empathy
  21. PACKAGE = empathy
  22. VERSION = 3.6.0.3
  23.  
  24. SHELL = /bin/bash
  25.  
  26. srcdir = .
  27. top_srcdir = ..
  28. top_builddir = ..
  29.  
  30.  
  31. prefix = /home/fotanus/destroot
  32. exec_prefix = ${prefix}
  33. datadir = ${datarootdir}
  34. datarootdir = ${prefix}/share
  35. libdir = ${exec_prefix}/lib
  36. DATADIRNAME = share
  37. itlocaledir = $(prefix)/$(DATADIRNAME)/locale
  38. subdir = po
  39. install_sh = ${SHELL} /home/fotanus/code/empathy-3.6.0.3/install-sh
  40. # Automake >= 1.8 provides /bin/mkdir -p.
  41. # Until it can be supposed, use the safe fallback:
  42. mkdir_p = $(install_sh) -d
  43.  
  44. INSTALL = /usr/bin/install -c
  45. INSTALL_DATA = ${INSTALL} -m 644
  46.  
  47. GMSGFMT = /usr/bin/msgfmt
  48. MSGFMT = /usr/bin/msgfmt
  49. XGETTEXT = /usr/bin/xgettext
  50. INTLTOOL_UPDATE = /usr/bin/intltool-update
  51. INTLTOOL_EXTRACT = /usr/bin/intltool-extract
  52. MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
  53. GENPOT   = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
  54.  
  55. ALL_LINGUAS =
  56.  
  57. PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
  58.  
  59. USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
  60.  
  61. USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
  62.  
  63. POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
  64.  
  65. DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
  66. EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
  67.  
  68. POTFILES = \
  69.     ../data/empathy.desktop.in.in \
  70.     ../data/org.gnome.Empathy.gschema.xml \
  71.     ../libempathy/empathy-ft-handler.c \
  72.     ../libempathy/empathy-keyring.c \
  73.     ../libempathy/empathy-message.c \
  74.     ../libempathy/empathy-time.c \
  75.     ../libempathy/empathy-utils.c \
  76.     ../libempathy-gtk/empathy-account-chooser.c \
  77.     ../libempathy-gtk/empathy-account-widget-aim.ui \
  78.     ../libempathy-gtk/empathy-account-widget.c \
  79.     ../libempathy-gtk/empathy-account-widget-generic.ui \
  80.     ../libempathy-gtk/empathy-account-widget-groupwise.ui \
  81.     ../libempathy-gtk/empathy-account-widget-icq.ui \
  82.     ../libempathy-gtk/empathy-account-widget-irc.c \
  83.     ../libempathy-gtk/empathy-account-widget-irc.ui \
  84.     ../libempathy-gtk/empathy-account-widget-jabber.ui \
  85.     ../libempathy-gtk/empathy-account-widget-local-xmpp.ui \
  86.     ../libempathy-gtk/empathy-account-widget-msn.ui \
  87.     ../libempathy-gtk/empathy-account-widget-sip.c \
  88.     ../libempathy-gtk/empathy-account-widget-sip.ui \
  89.     ../libempathy-gtk/empathy-account-widget-yahoo.ui \
  90.     ../libempathy-gtk/empathy-avatar-chooser.c \
  91.     ../libempathy-gtk/empathy-avatar-image.c \
  92.     ../libempathy-gtk/empathy-bad-password-dialog.c \
  93.     ../libempathy-gtk/empathy-base-password-dialog.c \
  94.     ../libempathy-gtk/empathy-calendar-button.c \
  95.     ../libempathy-gtk/empathy-call-utils.c \
  96.     ../libempathy-gtk/empathy-chat.c \
  97.     ../libempathy-gtk/empathy-chat.ui \
  98.     ../libempathy-gtk/empathy-contact-blocking-dialog.c \
  99.     ../libempathy-gtk/empathy-contact-blocking-dialog.ui \
  100.     ../libempathy-gtk/empathy-contactinfo-utils.c \
  101.     ../libempathy-gtk/empathy-contact-search-dialog.c \
  102.     ../libempathy-gtk/empathy-contact-widget.c \
  103.     ../libempathy-gtk/empathy-contact-widget.ui \
  104.     ../libempathy-gtk/empathy-groups-widget.c \
  105.     ../libempathy-gtk/empathy-individual-dialogs.c \
  106.     ../libempathy-gtk/empathy-individual-edit-dialog.c \
  107.     ../libempathy-gtk/empathy-individual-information-dialog.c \
  108.     ../libempathy-gtk/empathy-individual-menu.c \
  109.     ../libempathy-gtk/empathy-individual-view.c \
  110.     ../libempathy-gtk/empathy-individual-widget.c \
  111.     ../libempathy-gtk/empathy-individual-widget.ui \
  112.     ../libempathy-gtk/empathy-irc-network-chooser-dialog.c \
  113.     ../libempathy-gtk/empathy-irc-network-dialog.c \
  114.     ../libempathy-gtk/empathy-local-xmpp-assistant-widget.c \
  115.     ../libempathy-gtk/empathy-log-window.c \
  116.     ../libempathy-gtk/empathy-log-window.ui \
  117.     ../libempathy-gtk/empathy-new-account-dialog.c \
  118.     ../libempathy-gtk/empathy-new-call-dialog.c \
  119.     ../libempathy-gtk/empathy-new-message-dialog.c \
  120.     ../libempathy-gtk/empathy-password-dialog.c \
  121.     ../libempathy-gtk/empathy-presence-chooser.c \
  122.     ../libempathy-gtk/empathy-protocol-chooser.c \
  123.     ../libempathy-gtk/empathy-search-bar.c \
  124.     ../libempathy-gtk/empathy-search-bar.ui \
  125.     ../libempathy-gtk/empathy-sound-manager.c \
  126.     ../libempathy-gtk/empathy-status-preset-dialog.c \
  127.     ../libempathy-gtk/empathy-status-preset-dialog.ui \
  128.     ../libempathy-gtk/empathy-subscription-dialog.c \
  129.     ../libempathy-gtk/empathy-theme-adium.c \
  130.     ../libempathy-gtk/empathy-theme-manager.c \
  131.     ../libempathy-gtk/empathy-tls-dialog.c \
  132.     ../libempathy-gtk/empathy-ui-utils.c \
  133.     ../libempathy-gtk/empathy-user-info.c \
  134.     ../libempathy-gtk/empathy-webkit-utils.c \
  135.     ../libempathy-gtk/totem-subtitle-encoding.c \
  136.     ../libempathy-gtk/empathy-roster-model.h \
  137.     ../nautilus-sendto-plugin/empathy-nautilus-sendto.c \
  138.     ../src/empathy-about-dialog.c \
  139.     ../src/empathy-accounts.c \
  140.     ../src/empathy-accounts-dialog.c \
  141.     ../src/empathy-accounts-dialog.ui \
  142.     ../src/empathy-auth-client.c \
  143.     ../src/empathy.c \
  144.     ../src/empathy-call.c \
  145.     ../src/empathy-call-observer.c \
  146.     ../src/empathy-call-window.c \
  147.     ../src/empathy-call-window-fullscreen.ui \
  148.     ../src/empathy-call-window.ui \
  149.     ../src/empathy-chat.c \
  150.     ../src/empathy-chatrooms-window.c \
  151.     ../src/empathy-chatrooms-window.ui \
  152.     ../src/empathy-chat-window.c \
  153.     ../src/empathy-chat-window.ui \
  154.     ../src/empathy-debugger.c \
  155.     ../src/empathy-debug-window.c \
  156.     ../src/empathy-event-manager.c \
  157.     ../src/empathy-ft-manager.c \
  158.     ../src/empathy-ft-manager.ui \
  159.     ../src/empathy-import-dialog.c \
  160.     ../src/empathy-import-dialog.ui \
  161.     ../src/empathy-import-widget.c \
  162.     ../src/empathy-import-widget.c \
  163.     ../src/empathy-invite-participant-dialog.c \
  164.     ../src/empathy-new-chatroom-dialog.c \
  165.     ../src/empathy-new-chatroom-dialog.ui \
  166.     ../src/empathy-notifications-approver.c \
  167.     ../src/empathy-preferences.c \
  168.     ../src/empathy-preferences.ui \
  169.     ../src/empathy-roster-window.c \
  170.     ../src/empathy-roster-window-menubar.ui \
  171.     ../src/empathy-roster-window.ui \
  172.     ../src/empathy-status-icon.c \
  173.     ../src/empathy-status-icon.ui \
  174.     ../ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c \
  175.     ../ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin-widget.c \
  176.     ../ubuntu-online-accounts/empathy.application.in
  177.  
  178. CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
  179.  
  180. .SUFFIXES:
  181. .SUFFIXES: .po .pox .gmo .mo .msg .cat
  182.  
  183. AM_DEFAULT_VERBOSITY = 0
  184. INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
  185. INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
  186. INTLTOOL__v_MSGFMT_0 = @echo "  MSGFMT" $@;
  187.  
  188. .po.pox:
  189.     $(MAKE) $(GETTEXT_PACKAGE).pot
  190.     $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
  191.  
  192. .po.mo:
  193.     $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
  194.  
  195. .po.gmo:
  196.     $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
  197.       && rm -f $$file && $(GMSGFMT) -o $$file $<
  198.  
  199. .po.cat:
  200.     sed -f ../intl/po2msg.sed < $< > $*.msg \
  201.       && rm -f $@ && gencat $@ $*.msg
  202.  
  203.  
  204. all: all-yes
  205.  
  206. all-yes: $(CATALOGS)
  207. all-no:
  208.  
  209. $(GETTEXT_PACKAGE).pot: $(POTFILES)
  210.     $(GENPOT)
  211.  
  212. install: install-data
  213. install-data: install-data-yes
  214. install-data-no: all
  215. install-data-yes: all
  216.     linguas="$(USE_LINGUAS)"; \
  217.     for lang in $$linguas; do \
  218.       dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
  219.       $(mkdir_p) $$dir; \
  220.       if test -r $$lang.gmo; then \
  221.         $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
  222.         echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
  223.       else \
  224.         $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
  225.         echo "installing $(srcdir)/$$lang.gmo as" \
  226.          "$$dir/$(GETTEXT_PACKAGE).mo"; \
  227.       fi; \
  228.       if test -r $$lang.gmo.m; then \
  229.         $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
  230.         echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
  231.       else \
  232.         if test -r $(srcdir)/$$lang.gmo.m ; then \
  233.           $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
  234.         $$dir/$(GETTEXT_PACKAGE).mo.m; \
  235.           echo "installing $(srcdir)/$$lang.gmo.m as" \
  236.            "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
  237.         else \
  238.           true; \
  239.         fi; \
  240.       fi; \
  241.     done
  242.  
  243. # Empty stubs to satisfy archaic automake needs
  244. dvi info ctags tags CTAGS TAGS ID:
  245.  
  246. # Define this as empty until I found a useful application.
  247. install-exec installcheck:
  248.  
  249. uninstall:
  250.     linguas="$(USE_LINGUAS)"; \
  251.     for lang in $$linguas; do \
  252.       rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
  253.       rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
  254.     done
  255.  
  256. check: all $(GETTEXT_PACKAGE).pot
  257.     rm -f missing notexist
  258.     srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
  259.     if [ -r missing -o -r notexist ]; then \
  260.       exit 1; \
  261.     fi
  262.  
  263. mostlyclean:
  264.     rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
  265.     rm -f .intltool-merge-cache
  266.  
  267. clean: mostlyclean
  268.  
  269. distclean: clean
  270.     rm -f Makefile Makefile.in POTFILES stamp-it
  271.     rm -f *.mo *.msg *.cat *.cat.m *.gmo
  272.  
  273. maintainer-clean: distclean
  274.     @echo "This command is intended for maintainers to use;"
  275.     @echo "it deletes files that may require special tools to rebuild."
  276.     rm -f Makefile.in.in
  277.  
  278. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  279. dist distdir: $(DISTFILES)
  280.     dists="$(DISTFILES)"; \
  281.     extra_dists="$(EXTRA_DISTFILES)"; \
  282.     for file in $$extra_dists; do \
  283.       test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
  284.     done; \
  285.     for file in $$dists; do \
  286.       test -f $$file || file="$(srcdir)/$$file"; \
  287.       ln $$file $(distdir) 2> /dev/null \
  288.         || cp -p $$file $(distdir); \
  289.     done
  290.  
  291. update-po: Makefile
  292.     $(MAKE) $(GETTEXT_PACKAGE).pot
  293.     tmpdir=`pwd`; \
  294.     linguas="$(USE_LINGUAS)"; \
  295.     for lang in $$linguas; do \
  296.       echo "$$lang:"; \
  297.       result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
  298.       if $$result; then \
  299.         if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
  300.           rm -f $$tmpdir/$$lang.new.po; \
  301.             else \
  302.           if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
  303.             :; \
  304.           else \
  305.             echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
  306.             rm -f $$tmpdir/$$lang.new.po; \
  307.             exit 1; \
  308.           fi; \
  309.         fi; \
  310.       else \
  311.         echo "msgmerge for $$lang.gmo failed!"; \
  312.         rm -f $$tmpdir/$$lang.new.po; \
  313.       fi; \
  314.     done
  315.  
  316. Makefile POTFILES: stamp-it
  317.     @if test ! -f $@; then \
  318.       rm -f stamp-it; \
  319.       $(MAKE) stamp-it; \
  320.     fi
  321.  
  322. stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
  323.     cd $(top_builddir) \
  324.       && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
  325.            $(SHELL) ./config.status
  326.  
  327. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  328. # Otherwise a system limit (for SysV at least) may be exceeded.
  329. .NOEXPORT:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement