aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2010-05-13 14:35:28 +0000
committerPeter Eisentraut <peter_e@gmx.net>2010-05-13 14:35:28 +0000
commit74d770a895569cc2c8e6e5745249d3124b9f7fb2 (patch)
tree396ff7db4d93d41757a3ce54d419fc6460e49949 /src
parent4cb7536c6bdaae698706eb57f5a282907e475e5d (diff)
downloadpostgresql-74d770a895569cc2c8e6e5745249d3124b9f7fb2.tar.gz
postgresql-74d770a895569cc2c8e6e5745249d3124b9f7fb2.zip
Avoid error from mkdir if no languages are to be installed
mkinstalldirs used to handle no arguments, but mkdir doesn't. Also remove the .SILENT setting, that was previously removed from Makefile.global as well.
Diffstat (limited to 'src')
-rw-r--r--src/nls-global.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nls-global.mk b/src/nls-global.mk
index 9fa70f60fda..e7e375f0d0e 100644
--- a/src/nls-global.mk
+++ b/src/nls-global.mk
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/src/nls-global.mk,v 1.21 2009/08/26 22:24:42 petere Exp $
+# $PostgreSQL: pgsql/src/nls-global.mk,v 1.22 2010/05/13 14:35:28 petere Exp $
# Common rules for Native Language Support (NLS)
#
@@ -72,10 +72,10 @@ ifneq (,$(LANGUAGES))
endif
installdirs-po:
- $(MKDIR_P) $(foreach lang, $(LANGUAGES), '$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES)
+ $(if $(LANGUAGES),$(MKDIR_P) $(foreach lang, $(LANGUAGES), '$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES),:)
uninstall-po:
- rm -f $(foreach lang, $(LANGUAGES), '$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES/$(CATALOG_NAME)$(SO_MAJOR_VERSION)-$(MAJORVERSION).mo)
+ $(if $(LANGUAGES),rm -f $(foreach lang, $(LANGUAGES), '$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES/$(CATALOG_NAME)$(SO_MAJOR_VERSION)-$(MAJORVERSION).mo),:)
clean-po:
@@ -130,4 +130,3 @@ maintainer-check: maintainer-check-po
.PHONY: all-po install-po installdirs-po uninstall-po clean-po \
maintainer-check-po init-po update-po
-.SILENT: installdirs-po