~ubuntu-branches/ubuntu/vivid/pidgin-otr/vivid-proposed

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Package Import Robot
  • Author(s): Thibaut VARENE
  • Date: 2012-05-14 21:31:23 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120514213123-f0s7uzzv6c5z4gb9
Tags: 3.2.1-1
* New upstream release
* Fix for CVE-2012-2369
* Clean lintian warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Makefile for program source directory in GNU NLS utilities package.
2
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>
3
4
#
4
 
# This file file be copied and used freely without restrictions.  It can
5
 
# be used in projects which are not available under the GNU Public License
 
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,
6
7
# but which still want to provide support for the GNU gettext functionality.
7
 
# Please note that the actual code is *not* freely available.
8
8
#
9
9
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
10
10
#   instead of PACKAGE and to look for po2tbl in ./ not in intl/
12
12
# - Modified by jacob berkman <jacob@ximian.com> to install
13
13
#   Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
14
14
#
15
 
# - Modified by Rodney Dawes <dobey@novell.com> for use with intltool
 
15
# - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
16
16
#
17
17
# We have the following line for use by intltoolize:
18
18
# INTLTOOL_MAKEFILE
21
21
PACKAGE = @PACKAGE@
22
22
VERSION = @VERSION@
23
23
 
24
 
SHELL = /bin/sh
 
24
SHELL = @SHELL@
25
25
 
26
26
srcdir = @srcdir@
27
27
top_srcdir = @top_srcdir@
28
 
top_builddir = ..
 
28
top_builddir = @top_builddir@
29
29
VPATH = @srcdir@
30
30
 
31
31
prefix = @prefix@
54
54
 
55
55
ALL_LINGUAS = @ALL_LINGUAS@
56
56
 
57
 
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
58
 
 
59
 
POFILES=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.po "; done)
60
 
 
61
 
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES)
62
 
EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
 
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
63
67
 
64
68
POTFILES = \
65
 
#This Gets Replace for some reason
 
69
# This comment gets stripped out
66
70
 
67
 
CATALOGS=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
 
71
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
68
72
 
69
73
.SUFFIXES:
70
74
.SUFFIXES: .po .pox .gmo .mo .msg .cat
97
101
install-data: install-data-@USE_NLS@
98
102
install-data-no: all
99
103
install-data-yes: all
100
 
        $(mkdir_p) $(DESTDIR)$(itlocaledir)
101
 
        if test -n "$(PO_LINGUAS)"; then \
102
 
          linguas="$(PO_LINGUAS)"; \
103
 
        else \
104
 
          linguas="$(ALL_LINGUAS)"; \
105
 
        fi; \
 
104
        linguas="$(USE_LINGUAS)"; \
106
105
        for lang in $$linguas; do \
107
106
          dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
108
107
          $(mkdir_p) $$dir; \
130
129
        done
131
130
 
132
131
# Empty stubs to satisfy archaic automake needs
133
 
dvi info tags TAGS ID:
 
132
dvi info ctags tags CTAGS TAGS ID:
134
133
 
135
134
# Define this as empty until I found a useful application.
136
 
installcheck:
 
135
install-exec installcheck:
137
136
 
138
137
uninstall:
139
 
        if test -n "$(PO_LINGUAS)"; then \
140
 
          linguas="$(PO_LINGUAS)"; \
141
 
        else \
142
 
          linguas="$(ALL_LINGUAS)"; \
143
 
        fi; \
 
138
        linguas="$(USE_LINGUAS)"; \
144
139
        for lang in $$linguas; do \
145
140
          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
146
141
          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
147
142
        done
148
143
 
149
144
check: all $(GETTEXT_PACKAGE).pot
 
145
        rm -f missing notexist
 
146
        srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
 
147
        if [ -r missing -o -r notexist ]; then \
 
148
          exit 1; \
 
149
        fi
150
150
 
151
151
mostlyclean:
152
152
        rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
179
179
update-po: Makefile
180
180
        $(MAKE) $(GETTEXT_PACKAGE).pot
181
181
        tmpdir=`pwd`; \
182
 
        if test -n "$(PO_LINGUAS)"; then \
183
 
          linguas="$(PO_LINGUAS)"; \
184
 
        else \
185
 
          linguas="$(ALL_LINGUAS)"; \
186
 
        fi; \
 
182
        linguas="$(USE_LINGUAS)"; \
187
183
        for lang in $$linguas; do \
188
184
          echo "$$lang:"; \
189
185
          result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
211
207
          $(MAKE) stamp-it; \
212
208
        fi
213
209
 
214
 
stamp-it: Makefile.in.in ../config.status POTFILES.in
215
 
        cd .. \
 
210
stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
 
211
        cd $(top_builddir) \
216
212
          && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
217
213
               $(SHELL) ./config.status
218
214