Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
authorBen Elliston <bje@au.ibm.com>
Mon, 5 Jan 2009 10:35:40 +0000 (10:35 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Mon, 5 Jan 2009 10:35:40 +0000 (21:35 +1100)
libcpp/
* Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
(.po.pox): Likewise.
(po/$(PACKAGE).pot): Likewise.

gcc/
* Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
(.po.pox): Likewise.
(po/gcc.pot): Likewise.

From-SVN: r143073

gcc/ChangeLog
gcc/Makefile.in
libcpp/ChangeLog
libcpp/Makefile.in

index 4a0b9361e07e79fc569ee41494cdaf129f110bcc..44c38d068dfa916c343cf1fde99187098fb60bf6 100644 (file)
@@ -1,3 +1,9 @@
+2009-01-05  Ben Elliston  <bje@au.ibm.com>
+
+       * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
+       (.po.pox): Likewise.
+       (po/gcc.pot): Likewise.
+
 2009-01-04  David S. Miller  <davem@davemloft.net>
 
        * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
index 78d424e79af94562e62473f9a635feba1d46f274..1b89c0d8e63836010df46d85a359f60a35dd6a4e 100644 (file)
@@ -4742,7 +4742,7 @@ update-po: $(CATALOGS:.gmo=.pox)
 # N.B. We do not attempt to copy these into $(srcdir).  The snapshot
 # script does that.
 .po.gmo:
-       -test -d po || mkdir po
+       $(mkinstalldirs) po
        $(GMSGFMT) --statistics -o $@ $<
 
 # The new .po has to be gone over by hand, so we deposit it into
@@ -4750,7 +4750,7 @@ update-po: $(CATALOGS:.gmo=.pox)
 # If build/po/gcc.pot exists, use it (it was just created),
 # else use the one in srcdir.
 .po.pox:
-       -test -d po || mkdir po
+       $(mkinstalldirs) po
        $(MSGMERGE) $< `if test -f po/gcc.pot; \
                        then echo po/gcc.pot; \
                        else echo $(srcdir)/po/gcc.pot; fi` -o $@
@@ -4783,7 +4783,7 @@ install-po:
 # The .pot file is left in the build directory.
 gcc.pot: po/gcc.pot
 po/gcc.pot: force
-       -test -d po || mkdir po
+       $(mkinstalldirs) po
        $(MAKE) srcextra
        AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \
                $(XGETTEXT) gcc $(srcdir)
index a6378bc339c7fa8f641118bdc0647d498a9d8766..9786f72b463e327a4d261bbd6124f5bb528b1a23 100644 (file)
@@ -1,3 +1,9 @@
+2009-01-05  Ben Elliston  <bje@au.ibm.com>
+
+       * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
+       (.po.pox): Likewise.
+       (po/$(PACKAGE).pot): Likewise.
+
 2008-12-10  Alexandre Oliva  <aoliva@redhat.com>
 
        PR target/37033
index 74877bbd982bd1905d946076585a0577d4dca103..2d82ebdd8b337eb55edce59cb7fdbc4e52d72b7d 100644 (file)
@@ -220,7 +220,7 @@ endif
 
 # N.B. We do not attempt to copy these into $(srcdir).
 .po.gmo:
-       -test -d po || mkdir po
+       $(mkinstalldirs) po
        $(GMSGFMT) --statistics -o $@ $<
 
 # The new .po has to be gone over by hand, so we deposit it into
@@ -228,7 +228,7 @@ endif
 # If build/po/$(PACKAGE).pot exists, use it (it was just created),
 # else use the one in srcdir.
 .po.pox:
-       -test -d po || mkdir po
+       $(mkinstalldirs) po
        $(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \
                        then echo po/$(PACKAGE).pot; \
                        else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@
@@ -236,7 +236,7 @@ endif
 # Rule for regenerating the message template.
 $(PACKAGE).pot: po/$(PACKAGE).pot
 po/$(PACKAGE).pot: $(libcpp_a_SOURCES)
-       -test -d $(srcdir)/po || mkdir $(srcdir)/po
+       mkinstalldirs $(srcdir)/po
        $(XGETTEXT) --default-domain=$(PACKAGE) \
          --keyword=_ --keyword=N_ \
          --keyword=cpp_error:3 --keyword=cpp_errno:3 \