summaryrefslogtreecommitdiff
path: root/libcpp/Makefile.in
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2009-01-05 10:35:40 +0000
committerBen Elliston <bje@gcc.gnu.org>2009-01-05 21:35:40 +1100
commitfc0cd1807271550633138c197d4428e5405dd79d (patch)
treef04c4f141a939473ac101ad43c9d7ef85d2d5717 /libcpp/Makefile.in
parente28206ba6b932e4e9e8ca1a08bc131571b47ba89 (diff)
Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
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
Diffstat (limited to 'libcpp/Makefile.in')
-rw-r--r--libcpp/Makefile.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in
index 74877bbd982..2d82ebdd8b3 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 \