(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / po / Makefile
blobfa26aeca0c6e2e031272f39a94784e0205f6c548
1 # Copyright (C) 1996,1997,1998,1999,2001,2002 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, write to the Free
16 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 # 02111-1307 USA.
19 # Makefile for installing libc message catalogs.
21 subdir := po
23 # Add names of the languages with broken .po files here.
24 BROKEN_LINGUAS =
26 # List of languages for which we have message catalogs of translations.
27 ALL_LINGUAS := $(filter-out $(BROKEN_LINGUAS),$(basename $(wildcard *.po)))
29 # You can override this in configparms or the make command line to limit
30 # the languages which get installed.
31 ifdef LINGUAS
32 LINGUAS := $(filter $(addsuffix %,$(LINGUAS)),$(ALL_LINGUAS))
33 else
34 LINGUAS = $(ALL_LINGUAS)
35 endif
37 # Text domain name to install under; must match ../locale/SYS_libc.c string.
38 domainname = libc
40 all: # Make this the default target; it will be defined in Rules.
42 include ../Makeconfig
44 # Pattern for where message catalog object for language % gets installed.
45 mo-installed = $(inst_msgcatdir)/%/LC_MESSAGES/$(domainname).mo
47 # Files to install: a $(domainname).mo file for each language.
48 install-others = $(LINGUAS:%=$(mo-installed))
50 # Files to distribute: all the source and compiled binary translation files.
51 distribute = $(ALL_LINGUAS:=.po) $(BROKEN_LINGUAS:=.po) $(ALL_LINGUAS:=.mo) \
52 libc.pot header.pot
55 include ../Rules
58 .SUFFIXES: .mo .po .pot
60 # Compile the binary message object files from the portable object source
61 # files of translations for each language.
62 %.mo: %.po
63 $(MSGFMT) -o $@ $<
65 # Install the message object files as libc.po in the language directory.
66 $(mo-installed): %.mo $(+force); $(do-install) || exit 0
68 .PHONY: linguas linguas.mo
69 linguas: $(ALL_LINGUAS:=.po)
70 linguas.mo: $(ALL_LINGUAS:=.mo)
72 realclean:
73 rm -f $(ALL_LINGUAS:=.mo)
75 # Copy the PO files from the translation coordinator's repository.
77 podir = /com/share/ftp/gnu/po/maint/glibc
79 pofiles := $(wildcard $(podir)/*.po)
81 ifneq (,$(pofiles))
83 %.po: $(podir)/%.po
84 cp -f $< $@
85 chmod 444 $@
87 linguas: $(pofiles:$(podir)/%=%)
88 ifeq ($(with-cvs),yes)
89 test ! -d CVS || cvs $(CVSOPTS) commit -m'Copied from $(podir)' $^
90 endif
91 linguas.mo: $(pofiles:$(podir)/%.po=%.mo)
93 endif