54
52
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
55
53
GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
61
INCLUDES = -I.. -I$(top_srcdir)/intl
63
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
68
DISTFILES = ChangeLog Makefile.in.in POTFILES.in \
55
ALL_LINGUAS = @ALL_LINGUAS@
57
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
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)
61
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES)
70
62
EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
65
#This Gets Replace for some reason
75
CATOBJEXT = @CATOBJEXT@
76
INSTOBJEXT = @INSTOBJEXT@
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)
79
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
70
.SUFFIXES: .po .pox .gmo .mo .msg .cat
85
73
$(MAKE) $(GETTEXT_PACKAGE).pot
105
93
$(GETTEXT_PACKAGE).pot: $(POTFILES)
108
install: install-exec install-data
110
97
install-data: install-data-@USE_NLS@
111
98
install-data-no: all
112
99
install-data-yes: all
113
if test -n "$(MKINSTALLDIRS)"; then \
114
$(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
100
$(mkdir_p) $(DESTDIR)$(itlocaledir)
101
if test -n "$(PO_LINGUAS)"; then \
102
linguas="$(PO_LINGUAS)"; \
116
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
118
@catalogs='$(CATALOGS)'; \
119
for cat in $$catalogs; do \
120
cat=`basename $$cat`; \
122
*.gmo) destdir=$(gnulocaledir);; \
123
*) destdir=$(localedir);; \
125
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
126
dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
127
if test -n "$(MKINSTALLDIRS)"; then \
128
$(MKINSTALLDIRS) $$dir; \
130
$(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
132
if test -r $$cat; then \
133
$(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
134
echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
136
$(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
137
echo "installing $(srcdir)/$$cat as" \
138
"$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
140
if test -r $$cat.m; then \
141
$(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
142
echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
144
if test -r $(srcdir)/$$cat.m ; then \
145
$(INSTALL_DATA) $(srcdir)/$$cat.m \
146
$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
147
echo "installing $(srcdir)/$$cat as" \
148
"$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
104
linguas="$(ALL_LINGUAS)"; \
106
for lang in $$linguas; do \
107
dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
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"; \
113
$(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
114
echo "installing $(srcdir)/$$lang.gmo as" \
115
"$$dir/$(GETTEXT_PACKAGE).mo"; \
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"; \
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"; \
154
if test "$(PACKAGE)" = "glib"; then \
155
if test -n "$(MKINSTALLDIRS)"; then \
156
$(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
158
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
160
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \
161
$(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
132
# Empty stubs to satisfy archaic automake needs
133
dvi info tags TAGS ID:
166
135
# Define this as empty until I found a useful application.
170
catalogs='$(CATALOGS)'; \
171
for cat in $$catalogs; do \
172
cat=`basename $$cat`; \
173
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
174
rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
175
rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
176
rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
177
rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
139
if test -n "$(PO_LINGUAS)"; then \
140
linguas="$(PO_LINGUAS)"; \
142
linguas="$(ALL_LINGUAS)"; \
144
for lang in $$linguas; do \
145
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
146
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
179
if test "$(PACKAGE)" = "glib"; then \
180
rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
183
149
check: all $(GETTEXT_PACKAGE).pot
185
dvi info tags TAGS ID:
188
rm -f core core.* *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
152
rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
190
153
rm -f .intltool-merge-cache
192
155
clean: mostlyclean
195
rm -f Makefile Makefile.in POTFILES
196
rm -f *.mo *.msg *.cat *.cat.m $(GMOFILES)
158
rm -f Makefile Makefile.in POTFILES stamp-it
159
rm -f *.mo *.msg *.cat *.cat.m *.gmo
198
161
maintainer-clean: distclean
199
162
@echo "This command is intended for maintainers to use;"
200
163
@echo "it deletes files that may require special tools to rebuild."
201
164
rm -f Makefile.in.in
203
distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
166
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
204
167
dist distdir: $(DISTFILES)
205
168
dists="$(DISTFILES)"; \
206
169
extra_dists="$(EXTRA_DISTFILES)"; \
207
170
for file in $$extra_dists; do \
208
test -f $$file && dists="$$dists $$file"; \
171
test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
210
173
for file in $$dists; do \
211
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
212
|| cp -p $(srcdir)/$$file $(distdir); \
174
test -f $$file || file="$(srcdir)/$$file"; \
175
ln $$file $(distdir) 2> /dev/null \
176
|| cp -p $$file $(distdir); \
215
179
update-po: Makefile
216
180
$(MAKE) $(GETTEXT_PACKAGE).pot
218
catalogs='$(CATALOGS)'; \
219
for cat in $$catalogs; do \
220
cat=`basename $$cat`; \
221
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
182
if test -n "$(PO_LINGUAS)"; then \
183
linguas="$(PO_LINGUAS)"; \
185
linguas="$(ALL_LINGUAS)"; \
187
for lang in $$linguas; do \
222
188
echo "$$lang:"; \
223
189
result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
224
190
if $$result; then \