Erik Grinaker is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

erikg / Revelation

Revelation is a password manager for the GNOME desktop, released under the GNU GPL license. It stores all your accounts and passwords in a single, secure place, and gives you access to it through a user-friendly graphical interface.

Clone this repository (size: 2.1 MB): HTTPS / SSH
hg clone https://bitbucket.org/erikg/revelation
hg clone ssh://hg@bitbucket.org/erikg/revelation

Revelation / po / Makefile.in.in

commit
75a53bdb5d20
parent
cf608f40f65b
parent
8a2b7cfa374a
branch
default

Automated merge with https://bitbucket.org/urmas/revelation

1
36c267f57d99
# Makefile for program source directory in GNU NLS utilities package.
2
36c267f57d99
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3
36c267f57d99
#
4
36c267f57d99
# This file file be copied and used freely without restrictions.  It can
5
36c267f57d99
# be used in projects which are not available under the GNU Public License
6
36c267f57d99
# but which still want to provide support for the GNU gettext functionality.
7
36c267f57d99
# Please note that the actual code is *not* freely available.
8
36c267f57d99
#
9
36c267f57d99
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
10
36c267f57d99
#   instead of PACKAGE and to look for po2tbl in ./ not in intl/
11
36c267f57d99
#
12
36c267f57d99
# - Modified by jacob berkman <jacob@ximian.com> to install
13
36c267f57d99
#   Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
14
36c267f57d99
#
15
36c267f57d99
# - Modified by Rodney Dawes <dobey@novell.com> for use with intltool
16
36c267f57d99
#
17
36c267f57d99
# We have the following line for use by intltoolize:
18
36c267f57d99
# INTLTOOL_MAKEFILE
19
36c267f57d99
20
36c267f57d99
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
21
36c267f57d99
PACKAGE = @PACKAGE@
22
36c267f57d99
VERSION = @VERSION@
23
36c267f57d99
24
36c267f57d99
SHELL = /bin/sh
25
36c267f57d99
26
36c267f57d99
srcdir = @srcdir@
27
36c267f57d99
top_srcdir = @top_srcdir@
28
36c267f57d99
top_builddir = ..
29
36c267f57d99
VPATH = @srcdir@
30
36c267f57d99
31
36c267f57d99
prefix = @prefix@
32
36c267f57d99
exec_prefix = @exec_prefix@
33
36c267f57d99
datadir = @datadir@
34
36c267f57d99
datarootdir = @datarootdir@
35
36c267f57d99
libdir = @libdir@
36
36c267f57d99
DATADIRNAME = @DATADIRNAME@
37
36c267f57d99
itlocaledir = $(prefix)/$(DATADIRNAME)/locale
38
36c267f57d99
subdir = po
39
36c267f57d99
install_sh = @install_sh@
40
36c267f57d99
# Automake >= 1.8 provides @mkdir_p@.
41
36c267f57d99
# Until it can be supposed, use the safe fallback:
42
36c267f57d99
mkdir_p = $(install_sh) -d
43
36c267f57d99
44
36c267f57d99
INSTALL = @INSTALL@
45
36c267f57d99
INSTALL_DATA = @INSTALL_DATA@
46
36c267f57d99
47
36c267f57d99
GMSGFMT = @GMSGFMT@
48
36c267f57d99
MSGFMT = @MSGFMT@
49
36c267f57d99
XGETTEXT = @XGETTEXT@
50
36c267f57d99
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
51
36c267f57d99
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
52
36c267f57d99
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
53
36c267f57d99
GENPOT   = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
54
36c267f57d99
55
36c267f57d99
ALL_LINGUAS = @ALL_LINGUAS@
56
36c267f57d99
57
36c267f57d99
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
58
36c267f57d99
59
36c267f57d99
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
36c267f57d99
61
c71eeaf63d20
DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
62
36c267f57d99
EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
63
36c267f57d99
64
36c267f57d99
POTFILES = \
65
36c267f57d99
#This Gets Replace for some reason
66
36c267f57d99
67
36c267f57d99
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)
68
36c267f57d99
69
36c267f57d99
.SUFFIXES:
70
36c267f57d99
.SUFFIXES: .po .pox .gmo .mo .msg .cat
71
36c267f57d99
72
36c267f57d99
.po.pox:
73
36c267f57d99
	$(MAKE) $(GETTEXT_PACKAGE).pot
74
36c267f57d99
	$(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
75
36c267f57d99
76
36c267f57d99
.po.mo:
77
36c267f57d99
	$(MSGFMT) -o $@ $<
78
36c267f57d99
79
36c267f57d99
.po.gmo:
80
36c267f57d99
	file=`echo $* | sed 's,.*/,,'`.gmo \
81
36c267f57d99
	  && rm -f $$file && $(GMSGFMT) -o $$file $<
82
36c267f57d99
83
36c267f57d99
.po.cat:
84
36c267f57d99
	sed -f ../intl/po2msg.sed < $< > $*.msg \
85
36c267f57d99
	  && rm -f $@ && gencat $@ $*.msg
86
36c267f57d99
87
36c267f57d99
88
36c267f57d99
all: all-@USE_NLS@
89
36c267f57d99
90
36c267f57d99
all-yes: $(CATALOGS)
91
36c267f57d99
all-no:
92
36c267f57d99
93
36c267f57d99
$(GETTEXT_PACKAGE).pot: $(POTFILES)
94
36c267f57d99
	$(GENPOT)
95
36c267f57d99
96
36c267f57d99
install: install-data
97
36c267f57d99
install-data: install-data-@USE_NLS@
98
36c267f57d99
install-data-no: all
99
36c267f57d99
install-data-yes: all
100
36c267f57d99
	$(mkdir_p) $(DESTDIR)$(itlocaledir)
101
36c267f57d99
	if test -n "$(PO_LINGUAS)"; then \
102
36c267f57d99
	  linguas="$(PO_LINGUAS)"; \
103
36c267f57d99
	else \
104
36c267f57d99
	  linguas="$(ALL_LINGUAS)"; \
105
36c267f57d99
	fi; \
106
36c267f57d99
	for lang in $$linguas; do \
107
36c267f57d99
	  dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
108
36c267f57d99
	  $(mkdir_p) $$dir; \
109
36c267f57d99
	  if test -r $$lang.gmo; then \
110
36c267f57d99
	    $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
111
36c267f57d99
	    echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
112
36c267f57d99
	  else \
113
36c267f57d99
	    $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
114
36c267f57d99
	    echo "installing $(srcdir)/$$lang.gmo as" \
115
36c267f57d99
		 "$$dir/$(GETTEXT_PACKAGE).mo"; \
116
36c267f57d99
	  fi; \
117
36c267f57d99
	  if test -r $$lang.gmo.m; then \
118
36c267f57d99
	    $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
119
36c267f57d99
	    echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
120
36c267f57d99
	  else \
121
36c267f57d99
	    if test -r $(srcdir)/$$lang.gmo.m ; then \
122
36c267f57d99
	      $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
123
36c267f57d99
		$$dir/$(GETTEXT_PACKAGE).mo.m; \
124
36c267f57d99
	      echo "installing $(srcdir)/$$lang.gmo.m as" \
125
36c267f57d99
		   "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
126
36c267f57d99
	    else \
127
36c267f57d99
	      true; \
128
36c267f57d99
	    fi; \
129
36c267f57d99
	  fi; \
130
36c267f57d99
	done
131
36c267f57d99
132
36c267f57d99
# Empty stubs to satisfy archaic automake needs
133
36c267f57d99
dvi info tags TAGS ID:
134
36c267f57d99
135
36c267f57d99
# Define this as empty until I found a useful application.
136
36c267f57d99
installcheck:
137
36c267f57d99
138
36c267f57d99
uninstall:
139
36c267f57d99
	if test -n "$(PO_LINGUAS)"; then \
140
36c267f57d99
	  linguas="$(PO_LINGUAS)"; \
141
36c267f57d99
	else \
142
36c267f57d99
	  linguas="$(ALL_LINGUAS)"; \
143
36c267f57d99
	fi; \
144
36c267f57d99
	for lang in $$linguas; do \
145
36c267f57d99
	  rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
146
36c267f57d99
	  rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
147
36c267f57d99
	done
148
36c267f57d99
149
36c267f57d99
check: all $(GETTEXT_PACKAGE).pot
150
36c267f57d99
151
36c267f57d99
mostlyclean:
152
36c267f57d99
	rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
153
36c267f57d99
	rm -f .intltool-merge-cache
154
36c267f57d99
155
36c267f57d99
clean: mostlyclean
156
36c267f57d99
157
36c267f57d99
distclean: clean
158
36c267f57d99
	rm -f Makefile Makefile.in POTFILES stamp-it
159
36c267f57d99
	rm -f *.mo *.msg *.cat *.cat.m *.gmo
160
36c267f57d99
161
36c267f57d99
maintainer-clean: distclean
162
36c267f57d99
	@echo "This command is intended for maintainers to use;"
163
36c267f57d99
	@echo "it deletes files that may require special tools to rebuild."
164
36c267f57d99
	rm -f Makefile.in.in
165
36c267f57d99
166
36c267f57d99
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
167
36c267f57d99
dist distdir: $(DISTFILES)
168
36c267f57d99
	dists="$(DISTFILES)"; \
169
36c267f57d99
	extra_dists="$(EXTRA_DISTFILES)"; \
170
36c267f57d99
	for file in $$extra_dists; do \
171
36c267f57d99
	  test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
172
36c267f57d99
	done; \
173
36c267f57d99
	for file in $$dists; do \
174
36c267f57d99
	  test -f $$file || file="$(srcdir)/$$file"; \
175
36c267f57d99
	  ln $$file $(distdir) 2> /dev/null \
176
36c267f57d99
	    || cp -p $$file $(distdir); \
177
36c267f57d99
	done
178
36c267f57d99
179
36c267f57d99
update-po: Makefile
180
36c267f57d99
	$(MAKE) $(GETTEXT_PACKAGE).pot
181
36c267f57d99
	tmpdir=`pwd`; \
182
36c267f57d99
	if test -n "$(PO_LINGUAS)"; then \
183
36c267f57d99
	  linguas="$(PO_LINGUAS)"; \
184
36c267f57d99
	else \
185
36c267f57d99
	  linguas="$(ALL_LINGUAS)"; \
186
36c267f57d99
	fi; \
187
36c267f57d99
	for lang in $$linguas; do \
188
36c267f57d99
	  echo "$$lang:"; \
189
36c267f57d99
	  result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
190
36c267f57d99
	  if $$result; then \
191
36c267f57d99
	    if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
192
36c267f57d99
	      rm -f $$tmpdir/$$lang.new.po; \
193
36c267f57d99
            else \
194
36c267f57d99
	      if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
195
36c267f57d99
	        :; \
196
36c267f57d99
	      else \
197
36c267f57d99
	        echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
198
36c267f57d99
	        rm -f $$tmpdir/$$lang.new.po; \
199
36c267f57d99
	        exit 1; \
200
36c267f57d99
	      fi; \
201
36c267f57d99
	    fi; \
202
36c267f57d99
	  else \
203
36c267f57d99
	    echo "msgmerge for $$lang.gmo failed!"; \
204
36c267f57d99
	    rm -f $$tmpdir/$$lang.new.po; \
205
36c267f57d99
	  fi; \
206
36c267f57d99
	done
207
36c267f57d99
208
36c267f57d99
Makefile POTFILES: stamp-it
209
36c267f57d99
	@if test ! -f $@; then \
210
36c267f57d99
	  rm -f stamp-it; \
211
36c267f57d99
	  $(MAKE) stamp-it; \
212
36c267f57d99
	fi
213
36c267f57d99
214
36c267f57d99
stamp-it: Makefile.in.in ../config.status POTFILES.in
215
36c267f57d99
	cd .. \
216
36c267f57d99
	  && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
217
36c267f57d99
	       $(SHELL) ./config.status
218
36c267f57d99
219
36c267f57d99
# Tell versions [3.59,3.63) of GNU make not to export all variables.
220
36c267f57d99
# Otherwise a system limit (for SysV at least) may be exceeded.
221
36c267f57d99
.NOEXPORT: