]> git.llucax.com Git - software/mutt-debian.git/blob - obj-i486-linux-gnu/po/Makefile
Merge commit 'upstream/1.5.20'
[software/mutt-debian.git] / obj-i486-linux-gnu / po / Makefile
1 # Makefile for program source directory in GNU NLS utilities package.
2 # Copyright (C) 1995-1997, 2000, 2001 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3 #
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 General Public License
6 # but which still want to provide support for the GNU gettext functionality.
7 # Please note that the actual code is *not* freely available.
8
9 PACKAGE = mutt
10 VERSION = 1.5.19
11
12 # These two variables depend on the location of this directory.
13 subdir = po
14 top_builddir = ..
15
16 SHELL = /bin/sh
17
18
19 srcdir = ../../po
20 top_srcdir = ../..
21 VPATH = ../../po
22
23 prefix = /usr
24 exec_prefix = ${prefix}
25 datadir = ${datarootdir}
26 datarootdir = ${prefix}/share
27 localedir = $(datadir)/locale
28 gettextsrcdir = $(datadir)/gettext/po
29
30 INSTALL = /usr/bin/install -c
31 INSTALL_DATA = ${INSTALL} -m 644
32 MKINSTALLDIRS = ../mkinstalldirs
33 mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
34
35 CC = gcc
36 GMSGFMT = /usr/bin/msgfmt
37 MSGFMT = /usr/bin/msgfmt
38 XGETTEXT = /usr/bin/xgettext
39 MSGMERGE = msgmerge
40
41 DEFS = -DHAVE_CONFIG_H
42 CFLAGS = -Wall -pedantic -Wno-long-long -Wall -g -O2
43 CPPFLAGS = -I/usr/include/qdbm -I/usr/include/qdbm    -I/include -I$(top_srcdir)/intl
44
45 INCLUDES = -I.. -I$(top_srcdir)/intl
46
47 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
48
49 POFILES =  de.po eu.po ru.po it.po es.po uk.po fr.po pl.po nl.po cs.po id.po sk.po ko.po el.po zh_TW.po zh_CN.po pt_BR.po eo.po gl.po sv.po da.po lt.po tr.po ja.po hu.po et.po ca.po bg.po ga.po
50 GMOFILES =  de.gmo eu.gmo ru.gmo it.gmo es.gmo uk.gmo fr.gmo pl.gmo nl.gmo cs.gmo id.gmo sk.gmo ko.gmo el.gmo zh_TW.gmo zh_CN.gmo pt_BR.gmo eo.gmo gl.gmo sv.gmo da.gmo lt.gmo tr.gmo ja.gmo hu.gmo et.gmo ca.gmo bg.gmo ga.gmo
51 DISTFILES = Makefile.in.in POTFILES.in $(PACKAGE).pot \
52 $(POFILES) $(GMOFILES)
53
54 # need two spaces before = as m4/gettext.m4 matches against
55 # 'POTFILES[space]=' to add files from POTFILES
56 BUILT_POTFILES  = $(top_builddir)/keymap_alldefs.h
57
58 POTFILES = \
59      ../../account.c \
60      ../../addrbook.c \
61      ../../alias.c \
62      ../../attach.c \
63      ../../browser.c \
64      ../../buffy.c \
65      ../../charset.c \
66      ../../color.c \
67      ../../commands.c \
68      ../../compose.c \
69      ../../compress.c \
70      ../../crypt-gpgme.c \
71      ../../crypt.c \
72      ../../cryptglue.c \
73      ../../curs_lib.c \
74      ../../curs_main.c \
75      ../../edit.c \
76      ../../editmsg.c \
77      ../../flags.c \
78      ../../handler.c \
79      ../../headers.c \
80      ../../help.c \
81      ../../history.c \
82      ../../hook.c \
83      ../../imap/auth.c \
84      ../../imap/auth_anon.c \
85      ../../imap/auth_cram.c \
86      ../../imap/auth_gss.c \
87      ../../imap/auth_login.c \
88      ../../imap/auth_sasl.c \
89      ../../imap/browse.c \
90      ../../imap/command.c \
91      ../../imap/imap.c \
92      ../../imap/message.c \
93      ../../imap/util.c \
94      ../../init.c \
95      ../../keymap.c \
96      ../../lib.c \
97      ../../main.c \
98      ../../mbox.c \
99      ../../menu.c \
100      ../../mh.c \
101      ../../mutt_sasl.c \
102      ../../mutt_socket.c \
103      ../../mutt_ssl.c \
104      ../../mutt_ssl_gnutls.c \
105      ../../mutt_tunnel.c \
106      ../../muttlib.c \
107      ../../mx.c \
108      ../../pager.c \
109      ../../parse.c \
110      ../../pattern.c \
111      ../../pgp.c \
112      ../../pgpinvoke.c \
113      ../../pgpkey.c \
114      ../../pop.c \
115      ../../pop_auth.c \
116      ../../pop_lib.c \
117      ../../postpone.c \
118      ../../query.c \
119      ../../recvattach.c \
120      ../../recvcmd.c \
121      ../../remailer.c \
122      ../../rfc1524.c \
123      ../../score.c \
124      ../../send.c \
125      ../../sendlib.c \
126      ../../signal.c \
127      ../../smime.c \
128      ../../smtp.c \
129      ../../sort.c \
130      ../../status.c \
131      ../../thread.c
132
133 CATALOGS =  de.gmo eu.gmo ru.gmo it.gmo es.gmo uk.gmo fr.gmo pl.gmo nl.gmo cs.gmo id.gmo sk.gmo ko.gmo el.gmo zh_TW.gmo zh_CN.gmo pt_BR.gmo eo.gmo gl.gmo sv.gmo da.gmo lt.gmo tr.gmo ja.gmo hu.gmo et.gmo ca.gmo bg.gmo ga.gmo
134
135 .SUFFIXES:
136 .SUFFIXES: .c .o .po .pox .gmo .mo
137
138 .c.o:
139         $(COMPILE) $<
140
141 .po.pox:
142         $(MAKE) $(PACKAGE).pot
143         $(MSGMERGE) $< $(PACKAGE).pot -o $*.pox
144
145 .po.mo:
146         $(MSGFMT) -o $@ $<
147
148 .po.gmo:
149         file=`echo $* | sed 's,.*/,,'`.gmo \
150           && rm -f $$file && $(GMSGFMT) --statistics -o $$file $<
151
152
153 all: all-yes
154
155 all-yes: $(CATALOGS)
156 all-no:
157
158 $(top_builddir)/keymap_alldefs.h:
159         ( cd $(top_builddir) && $(MAKE) keymap_alldefs.h )
160
161 # Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot',
162 # otherwise packages like GCC can not be built if only parts of the source
163 # have been downloaded.
164
165 $(PACKAGE).pot: $(POTFILES) $(BUILT_POTFILES) $(srcdir)/POTFILES.in
166         rm -f $(PACKAGE).pot $(PACKAGE).po
167         $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
168           --add-comments --keyword=_ --keyword=N_ \
169           --files-from=$(srcdir)/POTFILES.in \
170         && \
171         $(XGETTEXT) --default-domain=$(PACKAGE) \
172           --add-comments --keyword=_ --keyword=N_ \
173           --join $(BUILT_POTFILES) \
174         && test ! -f $(PACKAGE).po \
175            || ( rm -f $(PACKAGE).pot \
176                 && mv $(PACKAGE).po $(PACKAGE).pot )
177
178
179 install: install-exec install-data
180 install-exec:
181 install-data: install-data-yes
182         if test "$(PACKAGE)" = "gettext"; then \
183           $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
184           $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
185                           $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
186         else \
187           : ; \
188         fi
189 install-data-no: all
190 install-data-yes: all
191         $(mkinstalldirs) $(DESTDIR)$(datadir)
192         @catalogs='$(CATALOGS)'; \
193         for cat in $$catalogs; do \
194           cat=`basename $$cat`; \
195           lang=`echo $$cat | sed 's/\.gmo$$//'`; \
196           dir=$(localedir)/$$lang/LC_MESSAGES; \
197           $(mkinstalldirs) $(DESTDIR)$$dir; \
198           if test -r $$cat; then \
199             $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
200             echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE).mo"; \
201           else \
202             $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
203             echo "installing $(srcdir)/$$cat as" \
204                  "$(DESTDIR)$$dir/$(PACKAGE).mo"; \
205           fi; \
206         done
207
208 # Define this as empty until I found a useful application.
209 installcheck:
210
211 uninstall:
212         catalogs='$(CATALOGS)'; \
213         for cat in $$catalogs; do \
214           cat=`basename $$cat`; \
215           lang=`echo $$cat | sed 's/\.gmo$$//'`; \
216           rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
217         done
218         if test "$(PACKAGE)" = "gettext"; then \
219           rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
220         else \
221           : ; \
222         fi
223
224 check: all
225
226 dvi info tags TAGS ID:
227
228 mostlyclean:
229         rm -f core core.* *.pox $(PACKAGE).po *.new.po
230         rm -fr *.o
231
232 clean: mostlyclean
233
234 distclean: clean
235         rm -f Makefile Makefile.in POTFILES *.mo
236
237 maintainer-clean: distclean
238         @echo "This command is intended for maintainers to use;"
239         @echo "it deletes files that may require special tools to rebuild."
240         rm -f $(GMOFILES)
241
242 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
243 dist distdir: $(DISTFILES)
244         dists="$(DISTFILES)"; \
245         for file in $$dists; do \
246           if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
247           cp -p $$dir/$$file $(distdir); \
248         done
249
250 update-po: Makefile
251         $(MAKE) $(PACKAGE).pot
252         if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \
253         cd $(srcdir); \
254         catalogs='$(GMOFILES)'; \
255         for cat in $$catalogs; do \
256           cat=`basename $$cat`; \
257           lang=`echo $$cat | sed 's/\.gmo$$//'`; \
258           echo "$$lang:"; \
259           if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \
260             mv -f $$lang.new.po $$lang.po; \
261           else \
262             echo "msgmerge for $$cat failed!"; \
263             rm -f $$lang.new.po; \
264           fi; \
265         done
266         $(MAKE) update-gmo
267
268 update-gmo: Makefile $(GMOFILES)
269         @:
270
271 Makefile: Makefile.in.in $(top_builddir)/config.status POTFILES.in
272         cd $(top_builddir) \
273           && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
274                $(SHELL) ./config.status
275
276 # Tell versions [3.59,3.63) of GNU make not to export all variables.
277 # Otherwise a system limit (for SysV at least) may be exceeded.
278 .NOEXPORT: