]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make an unused target more robust.
authorBruno Haible <bruno@clisp.org>
Mon, 11 Mar 2002 13:30:08 +0000 (13:30 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:07:49 +0000 (12:07 +0200)
po/ChangeLog
po/Makefile.in.in

index 10c97cb75534bfb2181f9d0e36859ec0f7ad1087..a46fe4e6b27f7795af139b8f50bc43f42c288927 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.in.in (.po.mo): Use a temporary .mo file, for robustness.
+       Reported by Jim Meyering <meyering@lucent.com>.
+
 2002-03-11  Bruno Haible  <bruno@clisp.org>
 
        * fr.po: Update from Michel Robitaille <robitail@iro.umontreal.ca>.
index 2d8baba41b5b6336243a8413b42761437fb5f71a..3636e1b9f12c7199ad0161bb2846b71fe2c12d5b 100644 (file)
@@ -58,7 +58,8 @@ CATALOGS = @CATALOGS@
 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
 
 .po.mo:
-       $(MSGFMT) -c -o $@ $<
+       @echo "$(MSGFMT) -c -o $@ $<"; \
+       $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
 
 .po.gmo:
        @lang=`echo $* | sed -e 's,.*/,,'`; \