annotate po/Makefile.in.in @ 2807:26755684c0dc trunk

[svn] - Fixed naming inconsistencies in search dialog - Made URL opener follow button ordering conventions
author mf0102
date Sat, 26 May 2007 04:39:16 -0700
parents cb178e5ad177
children c10e53092037
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 # Makefile for PO directory in any package using GNU gettext.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 # Copyright (C) 1995-1997, 2000-2003 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 #
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 # This file can be copied and used freely without restrictions. It can
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 # be used in projects which are not available under the GNU General Public
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 # License but which still want to provide support for the GNU gettext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 # functionality.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 # Please note that the actual code of GNU gettext is covered by the GNU
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 # General Public License and is *not* in the public domain.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 PACKAGE = @PACKAGE@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 VERSION = @VERSION@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 SHELL = /bin/sh
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 @SET_MAKE@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 srcdir = @srcdir@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 top_srcdir = @top_srcdir@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 VPATH = @srcdir@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 prefix = @prefix@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 exec_prefix = @exec_prefix@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 datadir = @datadir@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 localedir = $(datadir)/locale
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 gettextsrcdir = $(datadir)/gettext/po
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 INSTALL = @INSTALL@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 INSTALL_DATA = @INSTALL_DATA@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 MKINSTALLDIRS = @MKINSTALLDIRS@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 GMSGFMT = @GMSGFMT@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 MSGFMT = @MSGFMT@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 XGETTEXT = @XGETTEXT@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 MSGMERGE = msgmerge
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 MSGMERGE_UPDATE = @MSGMERGE@ --update
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 MSGINIT = msginit
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 MSGCONV = msgconv
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 MSGFILTER = msgfilter
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 POFILES = @POFILES@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 GMOFILES = @GMOFILES@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 UPDATEPOFILES = @UPDATEPOFILES@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 DUMMYPOFILES = @DUMMYPOFILES@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 DISTFILES.common = Makefile.in.in remove-potcdate.sin \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 $(POFILES) $(GMOFILES) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 POTFILES = \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 CATALOGS = @CATALOGS@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 # Makevars gets inserted here. (Don't remove this line!)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 .SUFFIXES:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 .po.mo:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 @echo "$(MSGFMT) -c -o $@ $<"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 .po.gmo:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 @lang=`echo $* | sed -e 's,.*/,,'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 .sin.sed:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 sed -e '/^#/d' $< > t-$@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 mv t-$@ $@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 all: all-@USE_NLS@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 all-yes: stamp-po
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 all-no:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 # been loosely updated. Its purpose is that when a developer or translator
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 # invocations of "make" will do nothing. This timestamp would not be necessary
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 # if updating the $(CATALOGS) would always touch them; however, the rule for
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 # $(POFILES) has been designed to not touch files that don't need to be
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 # changed.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 stamp-po: $(srcdir)/$(DOMAIN).pot
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 test -z "$(CATALOGS)" || $(MAKE) $(CATALOGS)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 @echo "touch stamp-po"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91 @echo timestamp > stamp-poT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 @mv stamp-poT stamp-po
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 # otherwise packages like GCC can not be built if only parts of the source
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 # have been downloaded.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 --files-from=$(srcdir)/POTFILES.in \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 --copyright-holder='$(COPYRIGHT_HOLDER)' \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105 --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 test ! -f $(DOMAIN).po || { \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 if test -f $(srcdir)/$(DOMAIN).pot; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108 sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 # every "make" invocation, only create it when it is missing.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124 $(srcdir)/$(DOMAIN).pot:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125 $(MAKE) $(DOMAIN).pot-update
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 # Note that a PO file is not touched if it doesn't need to be changed.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129 $(POFILES): $(srcdir)/$(DOMAIN).pot
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132 echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133 cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 install: install-exec install-data
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 install-exec:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 install-data: install-data-@USE_NLS@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139 if test "$(PACKAGE)" = "gettext-tools"; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
141 for file in $(DISTFILES.common) Makevars.template; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 $(INSTALL_DATA) $(srcdir)/$$file \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143 $(DESTDIR)$(gettextsrcdir)/$$file; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144 done; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 for file in Makevars; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147 done; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149 : ; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151 install-data-no: all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
152 install-data-yes: all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
153 $(mkinstalldirs) $(DESTDIR)$(datadir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
154 @catalogs='$(CATALOGS)'; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
155 for cat in $$catalogs; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
156 cat=`basename $$cat`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
157 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
158 dir=$(localedir)/$$lang/LC_MESSAGES; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
159 $(mkinstalldirs) $(DESTDIR)$$dir; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
160 if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
161 $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162 echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164 if test -n "$$lc"; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170 for file in *; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171 if test -f $$file; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174 done); \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178 :; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
179 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
180 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
181 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
182 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
183 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
184 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
185 ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
186 ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
187 cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
188 echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
189 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
190 done; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193 install-strip: install
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 installdirs: installdirs-exec installdirs-data
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 installdirs-exec:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197 installdirs-data: installdirs-data-@USE_NLS@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198 if test "$(PACKAGE)" = "gettext-tools"; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201 : ; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203 installdirs-data-no:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
204 installdirs-data-yes:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
205 $(mkinstalldirs) $(DESTDIR)$(datadir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
206 @catalogs='$(CATALOGS)'; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
207 for cat in $$catalogs; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
208 cat=`basename $$cat`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
209 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
210 dir=$(localedir)/$$lang/LC_MESSAGES; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
211 $(mkinstalldirs) $(DESTDIR)$$dir; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
212 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
213 if test -n "$$lc"; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
214 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
215 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
216 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
217 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
218 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
219 for file in *; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
220 if test -f $$file; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
221 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
222 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
223 done); \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
224 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
225 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
226 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
227 :; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
228 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
229 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
230 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
231 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
232 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
233 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
234 done; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
235 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
236
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
237 # Define this as empty until I found a useful application.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
238 installcheck:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
239
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
240 uninstall: uninstall-exec uninstall-data
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
241 uninstall-exec:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
242 uninstall-data: uninstall-data-@USE_NLS@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
243 if test "$(PACKAGE)" = "gettext-tools"; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
244 for file in $(DISTFILES.common) Makevars.template; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
245 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
246 done; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
247 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
248 : ; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
249 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
250 uninstall-data-no:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
251 uninstall-data-yes:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
252 catalogs='$(CATALOGS)'; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
253 for cat in $$catalogs; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
254 cat=`basename $$cat`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
255 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
256 for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
257 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
258 done; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
259 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
261 check: all
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
262
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
263 info dvi ps pdf html tags TAGS ctags CTAGS ID:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
264
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
265 mostlyclean:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
266 rm -f remove-potcdate.sed
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
267 rm -f stamp-poT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
268 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
269 rm -fr *.o
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
270
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
271 clean: mostlyclean
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
272
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
273 distclean: clean
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
274 rm -f Makefile Makefile.in POTFILES *.mo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276 maintainer-clean: distclean
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
277 @echo "This command is intended for maintainers to use;"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
278 @echo "it deletes files that may require special tools to rebuild."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279 rm -f stamp-po $(GMOFILES)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
282 dist distdir:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 $(MAKE) update-po
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284 @$(MAKE) dist2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 # This is a separate target because 'update-po' must be executed before.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
286 dist2: $(DISTFILES)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287 dists="$(DISTFILES)"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
288 if test "$(PACKAGE)" = "gettext-tools"; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 dists="$$dists Makevars.template"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
291 if test -f $(srcdir)/ChangeLog; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
292 dists="$$dists ChangeLog"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
293 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
294 for i in 0 1 2 3 4 5 6 7 8 9; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
295 if test -f $(srcdir)/ChangeLog.$$i; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
296 dists="$$dists ChangeLog.$$i"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
298 done; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
299 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 for file in $$dists; do \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301 if test -f $$file; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 cp -p $$file $(distdir); \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304 cp -p $(srcdir)/$$file $(distdir); \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308 update-po: Makefile
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 $(MAKE) $(DOMAIN).pot-update
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
310 test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
311 $(MAKE) update-gmo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
312
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
313 # General rule for updating PO files.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
314
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
315 .nop.po-update:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
316 @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
317 if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
318 tmpdir=`pwd`; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
319 echo "$$lang:"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
320 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
321 echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
322 cd $(srcdir); \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
323 if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
324 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
325 rm -f $$tmpdir/$$lang.new.po; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
326 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
327 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
328 :; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
329 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
330 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
331 exit 1; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
332 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
333 fi; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
334 else \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
335 echo "msgmerge for $$lang.po failed!" 1>&2; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
336 rm -f $$tmpdir/$$lang.new.po; \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
337 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
338
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
339 $(DUMMYPOFILES):
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
340
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
341 update-gmo: Makefile $(GMOFILES)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
342 @:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
343
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
344 Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
345 cd $(top_builddir) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
346 && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
347 $(SHELL) ./config.status
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
348
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
349 force:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
350
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
351 # Tell versions [3.59,3.63) of GNU make not to export all variables.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
352 # Otherwise a system limit (for SysV at least) may be exceeded.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
353 .NOEXPORT: