Makefile.in 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. GETTEXT_PACKAGE = uruk-software-center
  20. PACKAGE = uruk-software-center
  21. VERSION = 0.0.8
  22. SHELL = /bin/bash
  23. srcdir = .
  24. top_srcdir = ..
  25. top_builddir = ..
  26. prefix = /usr
  27. exec_prefix = ${prefix}
  28. datadir = ${datarootdir}
  29. datarootdir = ${prefix}/share
  30. libdir = ${prefix}/lib/x86_64-linux-gnu
  31. DATADIRNAME = share
  32. itlocaledir = $(prefix)/$(DATADIRNAME)/locale
  33. subdir = po
  34. install_sh = ${SHELL} /home/hayder/Desktop/uruk-software-center-1.0/install-sh
  35. # Automake >= 1.8 provides $(MKDIR_P).
  36. # Until it can be supposed, use the safe fallback:
  37. mkdir_p = $(install_sh) -d
  38. INSTALL = /usr/bin/install -c
  39. INSTALL_DATA = ${INSTALL} -m 644
  40. GMSGFMT = /usr/bin/msgfmt
  41. MSGFMT = /usr/bin/msgfmt
  42. XGETTEXT = /usr/bin/xgettext
  43. INTLTOOL_UPDATE = /usr/bin/intltool-update
  44. INTLTOOL_EXTRACT = /usr/bin/intltool-extract
  45. MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
  46. GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
  47. ALL_LINGUAS =
  48. PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
  49. 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)
  50. 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)
  51. POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
  52. DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
  53. EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
  54. POTFILES = \
  55. # This comment gets stripped out
  56. CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
  57. .SUFFIXES:
  58. .SUFFIXES: .po .pox .gmo .mo .msg .cat
  59. AM_DEFAULT_VERBOSITY = 1
  60. INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
  61. INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
  62. INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@;
  63. .po.pox:
  64. $(MAKE) $(GETTEXT_PACKAGE).pot
  65. $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
  66. .po.mo:
  67. $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
  68. .po.gmo:
  69. $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
  70. && rm -f $$file && $(GMSGFMT) -o $$file $<
  71. .po.cat:
  72. sed -f ../intl/po2msg.sed < $< > $*.msg \
  73. && rm -f $@ && gencat $@ $*.msg
  74. all: all-yes
  75. all-yes: $(CATALOGS)
  76. all-no:
  77. $(GETTEXT_PACKAGE).pot: $(POTFILES)
  78. $(GENPOT)
  79. install: install-data
  80. install-data: install-data-yes
  81. install-data-no: all
  82. install-data-yes: all
  83. linguas="$(USE_LINGUAS)"; \
  84. for lang in $$linguas; do \
  85. dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
  86. $(mkdir_p) $$dir; \
  87. if test -r $$lang.gmo; then \
  88. $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
  89. echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
  90. else \
  91. $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
  92. echo "installing $(srcdir)/$$lang.gmo as" \
  93. "$$dir/$(GETTEXT_PACKAGE).mo"; \
  94. fi; \
  95. if test -r $$lang.gmo.m; then \
  96. $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
  97. echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
  98. else \
  99. if test -r $(srcdir)/$$lang.gmo.m ; then \
  100. $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
  101. $$dir/$(GETTEXT_PACKAGE).mo.m; \
  102. echo "installing $(srcdir)/$$lang.gmo.m as" \
  103. "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
  104. else \
  105. true; \
  106. fi; \
  107. fi; \
  108. done
  109. # Empty stubs to satisfy archaic automake needs
  110. dvi info ctags tags CTAGS TAGS ID:
  111. # Define this as empty until I found a useful application.
  112. install-exec installcheck:
  113. uninstall:
  114. linguas="$(USE_LINGUAS)"; \
  115. for lang in $$linguas; do \
  116. rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
  117. rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
  118. done
  119. check: all $(GETTEXT_PACKAGE).pot
  120. rm -f missing notexist
  121. srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
  122. if [ -r missing -o -r notexist ]; then \
  123. exit 1; \
  124. fi
  125. mostlyclean:
  126. rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
  127. rm -f .intltool-merge-cache
  128. clean: mostlyclean
  129. distclean: clean
  130. rm -f Makefile Makefile.in POTFILES stamp-it
  131. rm -f *.mo *.msg *.cat *.cat.m *.gmo
  132. maintainer-clean: distclean
  133. @echo "This command is intended for maintainers to use;"
  134. @echo "it deletes files that may require special tools to rebuild."
  135. rm -f Makefile.in.in
  136. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  137. dist distdir: $(DISTFILES)
  138. dists="$(DISTFILES)"; \
  139. extra_dists="$(EXTRA_DISTFILES)"; \
  140. for file in $$extra_dists; do \
  141. test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
  142. done; \
  143. for file in $$dists; do \
  144. test -f $$file || file="$(srcdir)/$$file"; \
  145. ln $$file $(distdir) 2> /dev/null \
  146. || cp -p $$file $(distdir); \
  147. done
  148. update-po: Makefile
  149. $(MAKE) $(GETTEXT_PACKAGE).pot
  150. tmpdir=`pwd`; \
  151. linguas="$(USE_LINGUAS)"; \
  152. for lang in $$linguas; do \
  153. echo "$$lang:"; \
  154. result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
  155. if $$result; then \
  156. if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
  157. rm -f $$tmpdir/$$lang.new.po; \
  158. else \
  159. if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
  160. :; \
  161. else \
  162. echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
  163. rm -f $$tmpdir/$$lang.new.po; \
  164. exit 1; \
  165. fi; \
  166. fi; \
  167. else \
  168. echo "msgmerge for $$lang.gmo failed!"; \
  169. rm -f $$tmpdir/$$lang.new.po; \
  170. fi; \
  171. done
  172. Makefile POTFILES: stamp-it
  173. @if test ! -f $@; then \
  174. rm -f stamp-it; \
  175. $(MAKE) stamp-it; \
  176. fi
  177. stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
  178. cd $(top_builddir) \
  179. && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
  180. $(SHELL) ./config.status
  181. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  182. # Otherwise a system limit (for SysV at least) may be exceeded.
  183. .NOEXPORT: