Search
lxdream.org :: lxdream/po/Makefile.in.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename po/Makefile.in.in
changeset 1:eea311cfd33e
next10:c898b37506e0
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (16 years ago)
permissions -rw-r--r--
last change This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/po/Makefile.in.in Sat Mar 13 00:03:32 2004 +0000
1.3 @@ -0,0 +1,254 @@
1.4 +# Makefile for program source directory in GNU NLS utilities package.
1.5 +# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
1.6 +#
1.7 +# This file file be copied and used freely without restrictions. It can
1.8 +# be used in projects which are not available under the GNU Public License
1.9 +# but which still want to provide support for the GNU gettext functionality.
1.10 +# Please note that the actual code is *not* freely available.
1.11 +#
1.12 +# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
1.13 +# instead of PACKAGE and to look for po2tbl in ./ not in intl/
1.14 +#
1.15 +# - Modified by jacob berkman <jacob@ximian.com> to install
1.16 +# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
1.17 +
1.18 +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
1.19 +PACKAGE = @PACKAGE@
1.20 +VERSION = @VERSION@
1.21 +
1.22 +SHELL = /bin/sh
1.23 +@SET_MAKE@
1.24 +
1.25 +srcdir = @srcdir@
1.26 +top_srcdir = @top_srcdir@
1.27 +VPATH = @srcdir@
1.28 +
1.29 +prefix = @prefix@
1.30 +exec_prefix = @exec_prefix@
1.31 +datadir = @datadir@
1.32 +libdir = @libdir@
1.33 +localedir = $(libdir)/locale
1.34 +gnulocaledir = $(datadir)/locale
1.35 +gettextsrcdir = $(datadir)/glib-2.0/gettext/po
1.36 +subdir = po
1.37 +
1.38 +INSTALL = @INSTALL@
1.39 +INSTALL_DATA = @INSTALL_DATA@
1.40 +MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
1.41 +
1.42 +CC = @CC@
1.43 +GENCAT = @GENCAT@
1.44 +GMSGFMT = @GMSGFMT@
1.45 +MSGFMT = @MSGFMT@
1.46 +XGETTEXT = @XGETTEXT@
1.47 +MSGMERGE = msgmerge
1.48 +
1.49 +DEFS = @DEFS@
1.50 +CFLAGS = @CFLAGS@
1.51 +CPPFLAGS = @CPPFLAGS@
1.52 +
1.53 +INCLUDES = -I.. -I$(top_srcdir)/intl
1.54 +
1.55 +COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
1.56 +
1.57 +SOURCES =
1.58 +POFILES = @POFILES@
1.59 +GMOFILES = @GMOFILES@
1.60 +DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \
1.61 +$(POFILES) $(GMOFILES) $(SOURCES)
1.62 +
1.63 +POTFILES = \
1.64 +
1.65 +CATALOGS = @CATALOGS@
1.66 +CATOBJEXT = @CATOBJEXT@
1.67 +INSTOBJEXT = @INSTOBJEXT@
1.68 +
1.69 +.SUFFIXES:
1.70 +.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
1.71 +
1.72 +.c.o:
1.73 + $(COMPILE) $<
1.74 +
1.75 +.po.pox:
1.76 + $(MAKE) $(GETTEXT_PACKAGE).pot
1.77 + $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox
1.78 +
1.79 +.po.mo:
1.80 + $(MSGFMT) -o $@ $<
1.81 +
1.82 +.po.gmo:
1.83 + file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
1.84 + && rm -f $$file && $(GMSGFMT) -o $$file $<
1.85 +
1.86 +.po.cat:
1.87 + sed -f ../intl/po2msg.sed < $< > $*.msg \
1.88 + && rm -f $@ && $(GENCAT) $@ $*.msg
1.89 +
1.90 +
1.91 +all: all-@USE_NLS@
1.92 +
1.93 +all-yes: $(CATALOGS)
1.94 +all-no:
1.95 +
1.96 +$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
1.97 + $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
1.98 + --add-comments --keyword=_ --keyword=N_ \
1.99 + --files-from=$(srcdir)/POTFILES.in \
1.100 + && test ! -f $(GETTEXT_PACKAGE).po \
1.101 + || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \
1.102 + && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot )
1.103 +
1.104 +install: install-exec install-data
1.105 +install-exec:
1.106 +install-data: install-data-@USE_NLS@
1.107 +install-data-no: all
1.108 +install-data-yes: all
1.109 + if test -r "$(MKINSTALLDIRS)"; then \
1.110 + $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
1.111 + else \
1.112 + $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
1.113 + fi
1.114 + @catalogs='$(CATALOGS)'; \
1.115 + for cat in $$catalogs; do \
1.116 + cat=`basename $$cat`; \
1.117 + case "$$cat" in \
1.118 + *.gmo) destdir=$(gnulocaledir);; \
1.119 + *) destdir=$(localedir);; \
1.120 + esac; \
1.121 + lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
1.122 + dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
1.123 + if test -r "$(MKINSTALLDIRS)"; then \
1.124 + $(MKINSTALLDIRS) $$dir; \
1.125 + else \
1.126 + $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
1.127 + fi; \
1.128 + if test -r $$cat; then \
1.129 + $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
1.130 + echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
1.131 + else \
1.132 + $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
1.133 + echo "installing $(srcdir)/$$cat as" \
1.134 + "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
1.135 + fi; \
1.136 + if test -r $$cat.m; then \
1.137 + $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
1.138 + echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
1.139 + else \
1.140 + if test -r $(srcdir)/$$cat.m ; then \
1.141 + $(INSTALL_DATA) $(srcdir)/$$cat.m \
1.142 + $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
1.143 + echo "installing $(srcdir)/$$cat as" \
1.144 + "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
1.145 + else \
1.146 + true; \
1.147 + fi; \
1.148 + fi; \
1.149 + done
1.150 + if test "$(PACKAGE)" = "glib"; then \
1.151 + if test -r "$(MKINSTALLDIRS)"; then \
1.152 + $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
1.153 + else \
1.154 + $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
1.155 + fi; \
1.156 + $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
1.157 + $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
1.158 + else \
1.159 + : ; \
1.160 + fi
1.161 +
1.162 +# Define this as empty until I found a useful application.
1.163 +installcheck:
1.164 +
1.165 +uninstall:
1.166 + catalogs='$(CATALOGS)'; \
1.167 + for cat in $$catalogs; do \
1.168 + cat=`basename $$cat`; \
1.169 + lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
1.170 + rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
1.171 + rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
1.172 + rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
1.173 + rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
1.174 + done
1.175 + if test "$(PACKAGE)" = "glib"; then \
1.176 + rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
1.177 + fi
1.178 +
1.179 +check: all
1.180 +
1.181 +dvi info tags TAGS ID:
1.182 +
1.183 +mostlyclean:
1.184 + rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp
1.185 + rm -fr *.o
1.186 +
1.187 +clean: mostlyclean
1.188 +
1.189 +distclean: clean
1.190 + rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
1.191 +
1.192 +maintainer-clean: distclean
1.193 + @echo "This command is intended for maintainers to use;"
1.194 + @echo "it deletes files that may require special tools to rebuild."
1.195 + rm -f $(GMOFILES)
1.196 +
1.197 +distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
1.198 +dist distdir: update-po $(DISTFILES)
1.199 + dists="$(DISTFILES)"; \
1.200 + for file in $$dists; do \
1.201 + ln $(srcdir)/$$file $(distdir) 2> /dev/null \
1.202 + || cp -p $(srcdir)/$$file $(distdir); \
1.203 + done
1.204 +
1.205 +update-po: Makefile
1.206 + $(MAKE) $(GETTEXT_PACKAGE).pot
1.207 + tmpdir=`pwd`; \
1.208 + cd $(srcdir); \
1.209 + catalogs='$(CATALOGS)'; \
1.210 + for cat in $$catalogs; do \
1.211 + cat=`basename $$cat`; \
1.212 + lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
1.213 + echo "$$lang:"; \
1.214 + if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \
1.215 + if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
1.216 + rm -f $$tmpdir/$$lang.new.po; \
1.217 + else \
1.218 + if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
1.219 + :; \
1.220 + else \
1.221 + echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
1.222 + rm -f $$tmpdir/$$lang.new.po; \
1.223 + exit 1; \
1.224 + fi; \
1.225 + fi; \
1.226 + else \
1.227 + echo "msgmerge for $$cat failed!"; \
1.228 + rm -f $$tmpdir/$$lang.new.po; \
1.229 + fi; \
1.230 + done
1.231 +
1.232 +# POTFILES is created from POTFILES.in by stripping comments, empty lines
1.233 +# and Intltool tags (enclosed in square brackets), and appending a full
1.234 +# relative path to them
1.235 +POTFILES: POTFILES.in
1.236 + ( if test 'x$(srcdir)' != 'x.'; then \
1.237 + posrcprefix='$(top_srcdir)/'; \
1.238 + else \
1.239 + posrcprefix="../"; \
1.240 + fi; \
1.241 + rm -f $@-t $@ \
1.242 + && (sed -e '/^#/d' \
1.243 + -e "s/^\[.*\] +//" \
1.244 + -e '/^[ ]*$$/d' \
1.245 + -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
1.246 + | sed -e '$$s/\\$$//') > $@-t \
1.247 + && chmod a-w $@-t \
1.248 + && mv $@-t $@ )
1.249 +
1.250 +Makefile: Makefile.in.in ../config.status POTFILES
1.251 + cd .. \
1.252 + && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
1.253 + $(SHELL) ./config.status
1.254 +
1.255 +# Tell versions [3.59,3.63) of GNU make not to export all variables.
1.256 +# Otherwise a system limit (for SysV at least) may be exceeded.
1.257 +.NOEXPORT:
.