3
# Makefile for freetype I18n,
4
# based on the Makefile.in.in that comes with gettext
6
# Erwin Dieterich, 20. 1. 1998 Erwin.Dieterich.ED@Bayer-AG.de
10
# Makefile for program source directory in GNU NLS utilities package.
11
# Copyright (C) 1995, 1996 Free Software Foundation, Inc.
13
# This program is free software; you can redistribute it and/or modify
14
# it under the terms of the GNU General Public License as published by
15
# the Free Software Foundation; either version 2, or (at your option)
18
# This program is distributed in the hope that it will be useful,
19
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
# GNU General Public License for more details.
23
# You should have received a copy of the GNU General Public License
24
# along with this program; if not, write to the Free Software
25
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28
VERSION = @freetype_version@
34
top_srcdir = @top_srcdir@
38
exec_prefix = @exec_prefix@
39
datadir = $(prefix)/@DATADIRNAME@
40
localedir = @LOCALEDIR@
41
gnulocaledir = @LOCALEDIR@
45
INSTALL_DATA = @INSTALL_DATA@
59
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
61
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot
66
CATOBJEXT = @CATOBJEXT@
67
INSTOBJEXT = @INSTOBJEXT@
70
.SUFFIXES: .c .o .po .pox .gmo .mo .msg
76
$(MAKE) $(PACKAGE).pot
77
$(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
83
file=`echo $* | sed 's,.*/,,'`.gmo \
84
&& rm -f $$file && $(GMSGFMT) -o $$file $<
90
all-yes: $(PACKAGE).pot $(CATALOGS)
92
@echo "No support for NLS requested"
94
$(PACKAGE).pot: $(POTFILES)
95
if test -n "$(XGETTEXT)"; then \
96
$(XGETTEXT) --default-domain=freetype --directory=$(srcdir)/.. \
97
--keyword=_ --files-from=$(srcdir)/POTFILES.in; \
98
mv freetype.po freetype.pot; \
100
echo "xgettext not available: $(PACKAGE).pot not updated" 1>&2; \
104
install: install-exec install-data
106
install-data: install-data-@USE_NLS@
108
install-data-yes: all
109
$(top_srcdir)/mkinstalldirs $(datadir); \
110
catalogs='$(CATALOGS)'; \
111
for cat in $$catalogs; do \
113
*.gmo) destdir=$(gnulocaledir);; \
114
*) destdir=$(localedir);; \
116
lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \
117
dir=$$destdir/$$lang/LC_MESSAGES; \
118
$(top_srcdir)/mkinstalldirs $$dir; \
119
if test -r $$cat; then \
120
$(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
121
echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
123
$(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
124
echo "installing $(srcdir)/$$cat as" \
125
"$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
127
if test -r $$cat.m; then \
128
$(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
129
echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
131
if test -r $(srcdir)/$$cat.m ; then \
132
$(INSTALL_DATA) $(srcdir)/$$cat.m \
133
$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
134
echo "installing $(srcdir)/$$cat as" \
135
"$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
142
# Define this as empty until I found a useful application.
146
catalogs='$(CATALOGS)'; \
147
for cat in $$catalogs; do \
148
lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \
149
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
150
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
151
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
152
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
154
rm -f $(gettextsrcdir)/po-Makefile.in.in
158
dvi info tags TAGS ID:
161
rm -f core core.* *.pox $(PACKAGE).po *.old.po
167
rm -f Makefile Makefile.in POTFILES *.mo *.gmo *.msg *.cat.m
169
maintainer-clean: distclean
170
@echo "This command is intended for maintainers to use;"
171
@echo "it deletes files that may require special tools to rebuild."
173
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
174
dist distdir: update-po $(DISTFILES)
175
dists="$(DISTFILES)"; \
176
for file in $$dists; do \
177
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
178
|| cp -p $(srcdir)/$$file $(distdir); \
182
$(MAKE) $(PACKAGE).pot
183
PATH=`pwd`/../src:$$PATH; \
185
catalogs='$(CATALOGS)'; \
186
for cat in $$catalogs; do \
187
lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \
188
mv $$lang.po $$lang.old.po; \
190
if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
191
rm -f $$lang.old.po; \
193
echo "msgmerge for $$cat failed!"; \
195
mv $$lang.old.po $$lang.po; \
199
POTFILES: POTFILES.in
200
( if test 'x$(srcdir)' != 'x.'; then \
201
posrcprefix='$(top_srcdir)/'; \
205
sed -e '/^#/d' -e '/^[ ]*$$/d' \
206
-e "s@.*@ $$posrcprefix& \\\\@" \
207
-e '$$s/\(.*\) \\/\1/' < $(srcdir)/POTFILES.in > POTFILES )
209
Makefile: Makefile.in.in ../config.status POTFILES
211
&& CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
212
$(SHELL) ./config.status
214
# Tell versions [3.59,3.63) of GNU make not to export all variables.
215
# Otherwise a system limit (for SysV at least) may be exceeded.