From 5bd32b7d41e51b42e190024f3ae9f28702a4e0bb Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Thu, 6 Feb 2003 22:31:59 +0000 Subject: Push Steves INSTALL_LINGUAS shell macro fix to other buildmacros files, and make a similar fixup for the INSTALL_MAN macro. --- include/buildmacros | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include/buildmacros') diff --git a/include/buildmacros b/include/buildmacros index b9210af..f911798 100644 --- a/include/buildmacros +++ b/include/buildmacros @@ -116,7 +116,7 @@ INSTALL_LTLIB_STATIC = \ ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_DEVLIB_DIR) INSTALL_MAN = \ - @for d in $(MAN_PAGES); do \ + @for d in $(MAN_PAGES) ""; do \ first=true; \ for m in `$(AWK) \ '/^\.S[h|H] NAME/ {ok=1; next} ok {print; exit}' $$d \ @@ -143,10 +143,12 @@ INSTALL_MAN = \ ifeq ($(ENABLE_GETTEXT),yes) INSTALL_LINGUAS = \ - @for l in $(LINGUAS); do \ - ldir=$(PKG_LOCALE_DIR)/$$l/LC_MESSAGES; \ - $(INSTALL) -m 755 -d $$ldir; \ - $(INSTALL) -m 644 $$l.mo $$ldir/$(PKG_NAME).mo; \ + @for l in $(LINGUAS) ""; do \ + if test -f "$$l.mo" ; then \ + ldir=$(PKG_LOCALE_DIR)/$$l/LC_MESSAGES; \ + $(INSTALL) -m 755 -d $$ldir; \ + $(INSTALL) -m 644 $$l.mo $$ldir/$(PKG_NAME).mo; \ + fi; \ done endif -- cgit v1.2.3