Skip to content

Commit 74d770a

Browse files
committed
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.
1 parent 4cb7536 commit 74d770a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/nls-global.mk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/src/nls-global.mk,v 1.21 2009/08/26 22:24:42 petere Exp $
1+
# $PostgreSQL: pgsql/src/nls-global.mk,v 1.22 2010/05/13 14:35:28 petere Exp $
22

33
# Common rules for Native Language Support (NLS)
44
#
@@ -72,10 +72,10 @@ ifneq (,$(LANGUAGES))
7272
endif
7373

7474
installdirs-po:
75-
$(MKDIR_P) $(foreach lang, $(LANGUAGES), '$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES)
75+
$(if $(LANGUAGES),$(MKDIR_P) $(foreach lang, $(LANGUAGES), '$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES),:)
7676

7777
uninstall-po:
78-
rm -f $(foreach lang, $(LANGUAGES), '$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES/$(CATALOG_NAME)$(SO_MAJOR_VERSION)-$(MAJORVERSION).mo)
78+
$(if $(LANGUAGES),rm -f $(foreach lang, $(LANGUAGES), '$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES/$(CATALOG_NAME)$(SO_MAJOR_VERSION)-$(MAJORVERSION).mo),:)
7979

8080

8181
clean-po:
@@ -130,4 +130,3 @@ maintainer-check: maintainer-check-po
130130

131131
.PHONY: all-po install-po installdirs-po uninstall-po clean-po \
132132
maintainer-check-po init-po update-po
133-
.SILENT: installdirs-po

0 commit comments

Comments
 (0)