summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--po/Makefile10
2 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 83c4d07948..35c258cc1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2017-12-15 Joseph Myers <joseph@codesourcery.com>
+ [BZ #14121]
+ * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
+ (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
+ ($(mo-installed)): Use $(objpfx)%.mo.
+ (realclean): Remove rule.
+
* po/Makefile (linguas): Remove rule and dependencies.
(linguas.mo): Likewise.
(.PHONY): Do not depend on linguas and linguas.mo.
diff --git a/po/Makefile b/po/Makefile
index 1fdce17fa9..f811d33c52 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -44,6 +44,8 @@ mo-installed = $(inst_localedir)/%/LC_MESSAGES/$(domainname).mo
# Files to install: a $(domainname).mo file for each language.
install-others = $(LINGUAS:%=$(mo-installed))
+generated += $(ALL_LINGUAS:%=%.mo)
+
include ../Rules
@@ -80,14 +82,12 @@ libc.pot.files: FORCE
# Compile the binary message object files from the portable object source
# files of translations for each language.
-%.mo: %.po
+$(objpfx)%.mo: %.po
+ $(make-target-directory)
$(MSGFMT) -o $@ $<
# Install the message object files as libc.po in the language directory.
-$(mo-installed): %.mo $(+force); $(do-install) || exit 0
-
-realclean:
- rm -f $(ALL_LINGUAS:=.mo)
+$(mo-installed): $(objpfx)%.mo $(+force); $(do-install) || exit 0
# Update translations from the translation project.
TRANSLATIONS_URL = https://translationproject.org/latest/libc