From e7ae053de3e8c8413a02ea0a723a1bd16f9dfe04 Mon Sep 17 00:00:00 2001 From: bje Date: Mon, 5 Jan 2009 10:35:40 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143073 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/Makefile.in | 6 +++--- libcpp/ChangeLog | 6 ++++++ libcpp/Makefile.in | 6 +++--- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a0b936..44c38d0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-01-05 Ben Elliston + + * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir. + (.po.pox): Likewise. + (po/gcc.pot): Likewise. + 2009-01-04 David S. Miller * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 78d424e..1b89c0d 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -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) diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index a6378bc..9786f72 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2009-01-05 Ben Elliston + + * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir. + (.po.pox): Likewise. + (po/$(PACKAGE).pot): Likewise. + 2008-12-10 Alexandre Oliva PR target/37033 diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in index 74877bb..2d82ebd 100644 --- a/libcpp/Makefile.in +++ b/libcpp/Makefile.in @@ -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 \ -- 2.7.4