~ubuntu-branches/ubuntu/vivid/xfce4-netload-plugin/vivid

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Lionel Le Folgoc, Yves-Alexis Perez
  • Date: 2011-04-19 23:12:43 UTC
  • mfrom: (1.1.4 upstream) (9.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110419231243-tkce1b7gx8kjiu7h
Tags: 1.0.0-2
[ Lionel Le Folgoc ]
* Upload to unstable.
* debian/control:
  - add myself to Uploaders.
  - remove Simon and Emanuele from uploaders, thanks to them.

[ Yves-Alexis Perez ]
* debian/control:
  - update standards version to 3.9.2.

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/
11
11
#
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
#
 
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
14
19
 
15
20
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
16
21
PACKAGE = @PACKAGE@
17
22
VERSION = @VERSION@
18
23
 
19
 
SHELL = /bin/sh
20
 
@SET_MAKE@
 
24
SHELL = @SHELL@
21
25
 
22
26
srcdir = @srcdir@
23
27
top_srcdir = @top_srcdir@
24
 
top_builddir = ..
 
28
top_builddir = @top_builddir@
25
29
VPATH = @srcdir@
26
30
 
27
31
prefix = @prefix@
28
32
exec_prefix = @exec_prefix@
29
33
datadir = @datadir@
 
34
datarootdir = @datarootdir@
30
35
libdir = @libdir@
31
 
localedir = $(libdir)/locale
32
 
gnulocaledir = $(datadir)/locale
33
 
gettextsrcdir = $(datadir)/glib-2.0/gettext/po
 
36
DATADIRNAME = @DATADIRNAME@
 
37
itlocaledir = $(prefix)/$(DATADIRNAME)/locale
34
38
subdir = po
35
39
install_sh = @install_sh@
36
 
mkdir_p = @mkdir_p@
37
 
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 
40
# Automake >= 1.8 provides @mkdir_p@.
 
41
# Until it can be supposed, use the safe fallback:
 
42
mkdir_p = $(install_sh) -d
38
43
 
39
44
INSTALL = @INSTALL@
40
45
INSTALL_DATA = @INSTALL_DATA@
41
46
 
42
 
CC = @CC@
43
 
GENCAT = @GENCAT@
44
47
GMSGFMT = @GMSGFMT@
45
48
MSGFMT = @MSGFMT@
46
49
XGETTEXT_ARGS = @XGETTEXT_ARGS@
50
53
MSGMERGE = XGETTEXT_ARGS="$(XGETTEXT_ARGS)" INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
51
54
GENPOT   = XGETTEXT_ARGS="$(XGETTEXT_ARGS)" INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
52
55
 
53
 
DEFS = @DEFS@
54
 
CFLAGS = @CFLAGS@
55
 
CPPFLAGS = @CPPFLAGS@
56
 
 
57
 
INCLUDES = -I.. -I$(top_srcdir)/intl
58
 
 
59
 
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
60
 
 
61
 
SOURCES = 
62
 
POFILES = @POFILES@
63
 
GMOFILES = @GMOFILES@
64
 
DISTFILES = ChangeLog Makefile.in.in POTFILES.in \
65
 
$(POFILES) $(GMOFILES) $(SOURCES)
 
56
ALL_LINGUAS = @ALL_LINGUAS@
 
57
 
 
58
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
 
59
 
 
60
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)
 
61
 
 
62
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)
 
63
 
 
64
POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
 
65
 
 
66
DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
 
67
EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
66
68
 
67
69
POTFILES = \
 
70
# This comment gets stripped out
68
71
 
69
 
CATALOGS = @CATALOGS@
70
 
CATOBJEXT = @CATOBJEXT@
71
 
INSTOBJEXT = @INSTOBJEXT@
 
72
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
72
73
 
73
74
.SUFFIXES:
74
 
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
75
 
 
76
 
.c.o:
77
 
        $(COMPILE) $<
 
75
.SUFFIXES: .po .pox .gmo .mo .msg .cat
78
76
 
79
77
.po.pox:
80
78
        $(MAKE) $(GETTEXT_PACKAGE).pot
81
 
        $(MSGMERGE) $< $(top_builddir)/po/$(GETTEXT_PACKAGE).pot -o $*pox
 
79
        $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
82
80
 
83
81
.po.mo:
84
82
        $(MSGFMT) -o $@ $<
89
87
 
90
88
.po.cat:
91
89
        sed -f ../intl/po2msg.sed < $< > $*.msg \
92
 
          && rm -f $@ && $(GENCAT) $@ $*.msg
 
90
          && rm -f $@ && gencat $@ $*.msg
93
91
 
94
92
 
95
93
all: all-@USE_NLS@
100
98
$(GETTEXT_PACKAGE).pot: $(POTFILES)
101
99
        $(GENPOT)
102
100
 
103
 
install: install-exec install-data
104
 
install-exec:
 
101
install: install-data
105
102
install-data: install-data-@USE_NLS@
106
103
install-data-no: all
107
104
install-data-yes: all
108
 
        if test -n "$(MKINSTALLDIRS)"; then \
109
 
          $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
110
 
        else \
111
 
          $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
112
 
        fi
113
 
        @catalogs='$(CATALOGS)'; \
114
 
        for cat in $$catalogs; do \
115
 
          cat=`basename $$cat`; \
116
 
          case "$$cat" in \
117
 
            *.gmo) destdir=$(gnulocaledir);; \
118
 
            *)     destdir=$(localedir);; \
119
 
          esac; \
120
 
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
121
 
          dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
122
 
          if test -n "$(MKINSTALLDIRS)"; then \
123
 
            $(MKINSTALLDIRS) $$dir; \
124
 
          else \
125
 
            $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
126
 
          fi; \
127
 
          if test -r $$cat; then \
128
 
            $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
129
 
            echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
130
 
          else \
131
 
            $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
132
 
            echo "installing $(srcdir)/$$cat as" \
133
 
                 "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
134
 
          fi; \
135
 
          if test -r $$cat.m; then \
136
 
            $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
137
 
            echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
138
 
          else \
139
 
            if test -r $(srcdir)/$$cat.m ; then \
140
 
              $(INSTALL_DATA) $(srcdir)/$$cat.m \
141
 
                $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
142
 
              echo "installing $(srcdir)/$$cat as" \
143
 
                   "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
 
105
        linguas="$(USE_LINGUAS)"; \
 
106
        for lang in $$linguas; do \
 
107
          dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
 
108
          $(mkdir_p) $$dir; \
 
109
          if test -r $$lang.gmo; then \
 
110
            $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
 
111
            echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
 
112
          else \
 
113
            $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
 
114
            echo "installing $(srcdir)/$$lang.gmo as" \
 
115
                 "$$dir/$(GETTEXT_PACKAGE).mo"; \
 
116
          fi; \
 
117
          if test -r $$lang.gmo.m; then \
 
118
            $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
 
119
            echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
 
120
          else \
 
121
            if test -r $(srcdir)/$$lang.gmo.m ; then \
 
122
              $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
 
123
                $$dir/$(GETTEXT_PACKAGE).mo.m; \
 
124
              echo "installing $(srcdir)/$$lang.gmo.m as" \
 
125
                   "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
144
126
            else \
145
127
              true; \
146
128
            fi; \
147
129
          fi; \
148
130
        done
149
 
        if test "$(PACKAGE)" = "glib"; then \
150
 
          if test -n "$(MKINSTALLDIRS)"; then \
151
 
            $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
152
 
          else \
153
 
            $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
154
 
          fi; \
155
 
          $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
156
 
                          $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
157
 
        else \
158
 
          : ; \
159
 
        fi
 
131
 
 
132
# Empty stubs to satisfy archaic automake needs
 
133
dvi info ctags tags CTAGS TAGS ID:
160
134
 
161
135
# Define this as empty until I found a useful application.
162
 
installcheck:
 
136
install-exec installcheck:
163
137
 
164
138
uninstall:
165
 
        catalogs='$(CATALOGS)'; \
166
 
        for cat in $$catalogs; do \
167
 
          cat=`basename $$cat`; \
168
 
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
169
 
          rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
170
 
          rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
171
 
          rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
172
 
          rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
 
139
        linguas="$(USE_LINGUAS)"; \
 
140
        for lang in $$linguas; do \
 
141
          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
 
142
          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
173
143
        done
174
 
        if test "$(PACKAGE)" = "glib"; then \
175
 
          rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
 
144
 
 
145
check: all $(GETTEXT_PACKAGE).pot
 
146
        rm -f missing notexist
 
147
        srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
 
148
        if [ -r missing -o -r notexist ]; then \
 
149
          exit 1; \
176
150
        fi
177
151
 
178
 
check: all
179
 
 
180
 
dvi info tags TAGS ID:
181
 
 
182
152
mostlyclean:
183
 
        rm -f core core.* *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
184
 
        rm -fr *.o
 
153
        rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
185
154
        rm -f .intltool-merge-cache
186
155
 
187
156
clean: mostlyclean
188
157
 
189
158
distclean: clean
190
 
        rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
 
159
        rm -f Makefile Makefile.in POTFILES stamp-it
 
160
        rm -f *.mo *.msg *.cat *.cat.m *.gmo
191
161
 
192
162
maintainer-clean: distclean
193
163
        @echo "This command is intended for maintainers to use;"
194
164
        @echo "it deletes files that may require special tools to rebuild."
195
 
        rm -f $(GMOFILES)
 
165
        rm -f Makefile.in.in
196
166
 
197
 
distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
198
 
dist distdir: $(DISTFILES) $(GETTEXT_PACKAGE).pot
 
167
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
 
168
dist distdir: $(DISTFILES)
199
169
        dists="$(DISTFILES)"; \
 
170
        extra_dists="$(EXTRA_DISTFILES)"; \
 
171
        for file in $$extra_dists; do \
 
172
          test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
 
173
        done; \
200
174
        for file in $$dists; do \
201
 
          ln $(srcdir)/$$file $(distdir) 2> /dev/null \
202
 
            || cp -p $(srcdir)/$$file $(distdir); \
 
175
          test -f $$file || file="$(srcdir)/$$file"; \
 
176
          ln $$file $(distdir) 2> /dev/null \
 
177
            || cp -p $$file $(distdir); \
203
178
        done
204
179
 
205
180
update-po: Makefile
206
181
        $(MAKE) $(GETTEXT_PACKAGE).pot
207
182
        tmpdir=`pwd`; \
208
 
        catalogs='$(CATALOGS)'; \
209
 
        for cat in $$catalogs; do \
210
 
          cat=`basename $$cat`; \
211
 
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
 
183
        linguas="$(USE_LINGUAS)"; \
 
184
        for lang in $$linguas; do \
212
185
          echo "$$lang:"; \
213
186
          result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
214
187
          if $$result; then \
224
197
              fi; \
225
198
            fi; \
226
199
          else \
227
 
            echo "msgmerge for $$cat failed!"; \
 
200
            echo "msgmerge for $$lang.gmo failed!"; \
228
201
            rm -f $$tmpdir/$$lang.new.po; \
229
202
          fi; \
230
203
        done
231
204
 
232
 
# POTFILES is created from POTFILES.in by stripping comments, empty lines
233
 
# and Intltool tags (enclosed in square brackets), and appending a full
234
 
# relative path to them
235
 
POTFILES: POTFILES.in
236
 
        ( if test 'x$(srcdir)' != 'x.'; then \
237
 
            posrcprefix='$(top_srcdir)/'; \
238
 
          else \
239
 
            posrcprefix="../"; \
240
 
          fi; \
241
 
          rm -f $@-t $@ \
242
 
            && (sed -e '/^#/d'                                          \
243
 
                    -e "s/^\[.*\] +//"                                  \
244
 
                    -e '/^[     ]*$$/d'                                 \
245
 
                    -e "s@.*@   $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
246
 
                | sed -e '$$s/\\$$//') > $@-t \
247
 
            && chmod a-w $@-t \
248
 
            && mv $@-t $@ )
 
205
Makefile POTFILES: stamp-it
 
206
        @if test ! -f $@; then \
 
207
          rm -f stamp-it; \
 
208
          $(MAKE) stamp-it; \
 
209
        fi
249
210
 
250
 
Makefile: Makefile.in.in ../config.status POTFILES
251
 
        cd .. \
252
 
          && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
 
211
stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
 
212
        cd $(top_builddir) \
 
213
          && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
253
214
               $(SHELL) ./config.status
254
215
 
255
216
# Tell versions [3.59,3.63) of GNU make not to export all variables.