"Fossies" - the Fresh Open Source Software Archive 
Member "tin-2.6.2/po/Makefile.inn" (23 Aug 2021, 5096 Bytes) of package /linux/misc/tin-2.6.2.tar.xz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
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 may 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 = @PACKAGE@
10 VERSION = @VERSION@
11 NLS_TEXTDOMAIN = @NLS_TEXTDOMAIN@
12
13 # These two variables depend on the location of this directory.
14 subdir = po
15 top_builddir = ..
16
17 SHELL = /bin/sh
18 @SET_MAKE@
19
20 DESTDIR = @DESTDIR@
21
22 srcdir = @srcdir@
23 top_srcdir = @top_srcdir@
24 VPATH = @srcdir@
25
26 prefix = @prefix@
27 exec_prefix = @exec_prefix@
28 datarootdir = @datarootdir@
29 datadir = @datadir@
30 localedir = $(datadir)/locale
31 gettextsrcdir = $(datadir)/gettext/po
32
33 DATADIR = $(DESTDIR)$(datadir)
34 LOCALEDIR = $(DESTDIR)$(localedir)
35 GETTEXTSRCDIR = $(DESTDIR)$(gettextsrcdir)
36
37 INSTALL = @INSTALL@
38 INSTALL_DATA = @INSTALL_DATA@
39
40 CC = @CC@
41 GMSGFMT = @GMSGFMT@
42 MSGFMT = @MSGFMT@
43 XGETTEXT = @XGETTEXT@
44 MSGMERGE = msgmerge
45
46 DEFS = @DEFS@
47 CFLAGS = @CFLAGS@
48 CPPFLAGS = @CPPFLAGS@
49
50 INCLUDES = -I.. -I$(top_srcdir)/intl
51
52 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
53
54 POFILES = @POFILES@
55 GMOFILES = @GMOFILES@
56 DISTFILES = ChangeLog Makefile.inn POTFILES.in $(PACKAGE).pot \
57 $(POFILES) $(GMOFILES)
58
59 POTFILES = \
60
61 CATALOGS = @CATALOGS@
62 CATOBJEXT = @CATOBJEXT@
63 INSTOBJEXT = @INSTOBJEXT@
64
65 INSTOBJ = $(NLS_TEXTDOMAIN)$(INSTOBJEXT)
66
67 .SUFFIXES:
68 .SUFFIXES: .c .o .po .pox .gmo .mo
69
70 .c.o:
71 $(COMPILE) $<
72
73 .po.pox:
74 $(MAKE) $(PACKAGE).pot
75 $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
76
77 .po.mo:
78 $(MSGFMT) -o $@ $<
79
80 .po.gmo:
81 file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
82 && rm -f $$file && $(GMSGFMT) --statistics -o $$file $<
83
84
85 all: all-@USE_NLS@
86
87 all-yes: $(CATALOGS)
88 all-no:
89
90 # Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot',
91 # otherwise packages like GCC can not be built if only parts of the source
92 # have been downloaded.
93
94 $(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in
95 $(XGETTEXT) --default-domain=$(NLS_TEXTDOMAIN) --directory=$(top_srcdir) \
96 --add-comments --keyword=_ --keyword=N_ \
97 --files-from=$(srcdir)/POTFILES.in \
98 && test ! -f $(PACKAGE).po \
99 || ( rm -f $(srcdir)/$(PACKAGE).pot \
100 && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
101
102
103 install: install-exec install-data
104 install-exec:
105 install-data: install-data-@USE_NLS@
106 if test "$(PACKAGE)" = "gettext"; then \
107 mkdir -p $(GETTEXTSRCDIR); \
108 $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
109 $(GETTEXTSRCDIR)/Makefile.in.in; \
110 else \
111 : ; \
112 fi
113 install-data-no: all
114 install-data-yes: all
115 mkdir -p $(DATADIR)
116 @catalogs='$(CATALOGS)'; \
117 for cat in $$catalogs; do \
118 cat=`basename $$cat`; \
119 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
120 dir=$(LOCALEDIR)/$$lang/LC_MESSAGES; \
121 mkdir -p $$dir; \
122 if test -r $$cat; then \
123 $(INSTALL_DATA) $$cat $$dir/$(INSTOBJ); \
124 echo "installing $$cat as $$dir/$(INSTOBJ)"; \
125 else \
126 $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(INSTOBJ); \
127 echo "installing $(srcdir)/$$cat as" \
128 "$$dir/$(INSTOBJ)"; \
129 fi; \
130 done
131
132 # Define this as empty until I found a useful application.
133 installcheck:
134
135 uninstall:
136 catalogs='$(CATALOGS)'; \
137 for cat in $$catalogs; do \
138 cat=`basename $$cat`; \
139 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
140 rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(INSTOBJ); \
141 done
142 if test "$(PACKAGE)" = "gettext"; then \
143 rm -f $(GETTEXTSRCDIR)/Makefile.in.in; \
144 else \
145 : ; \
146 fi
147
148 check: all
149
150 dvi info tags TAGS ID:
151
152 mostlyclean:
153 rm -f core core.* *.pox $(PACKAGE).po *.new.po
154 rm -fr *.o
155
156 clean: mostlyclean
157
158 distclean: clean
159 rm -f Makefile Makefile.in POTFILES *.mo
160
161 maintainer-clean: distclean
162 @echo "This command is intended for maintainers to use;"
163 @echo "it deletes files that may require special tools to rebuild."
164 rm -f $(GMOFILES)
165
166 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
167 dist distdir:
168 $(MAKE) update-po
169 @$(MAKE) dist2
170 # This is a separate target because 'update-po' must be executed before.
171 dist2: $(DISTFILES)
172 dists="$(DISTFILES)"; \
173 for file in $$dists; do \
174 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
175 cp -p $$dir/$$file $(distdir); \
176 done
177
178 update-po: Makefile
179 $(MAKE) $(PACKAGE).pot
180 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \
181 cd $(srcdir); \
182 catalogs='$(GMOFILES)'; \
183 for cat in $$catalogs; do \
184 cat=`basename $$cat`; \
185 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
186 echo "$$lang:"; \
187 if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \
188 mv -f $$lang.new.po $$lang.po; \
189 else \
190 echo "msgmerge for $$cat failed!"; \
191 rm -f $$lang.new.po; \
192 fi; \
193 done
194 $(MAKE) update-gmo
195
196 update-gmo: Makefile $(GMOFILES)
197 @:
198
199 Makefile: Makefile.inn POTFILES.in
200
201 # Tell versions [3.59,3.63) of GNU make not to export all variables.
202 # Otherwise a system limit (for SysV at least) may be exceeded.
203 .NOEXPORT: