From 5f56378534e08492740bdac514d3509319cd19a9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 Jan 2013 09:16:14 -0800 Subject: [PATCH] Makefile: install man/ru/* --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f5263f362..247c05467 100644 --- a/Makefile +++ b/Makefile @@ -184,10 +184,16 @@ install: cd "$(srcdir)"; \ install -m $(INSMODE) $(DOCS) "$(DESTDIR)$(docdir)"; \ \ - for x in 1 5 ; do \ - install -d -m$(DIRMODE) "$(DESTDIR)$(mandir)/man$$x"; \ - cd "$(srcdir)/man"; \ - install -m$(INSMODE) *.$$x "$(DESTDIR)$(mandir)/man$$x"; \ + for x in "" $$(cd "$(srcdir)/man" && find -type d) ; do \ + for y in 1 5 ; do \ + cd "$(srcdir)/man/$$x"; \ + files=$$(echo *.$$y); \ + if [ -z "$$files" ] || [ "$$files" = "*.$$y" ]; then \ + continue; \ + fi; \ + install -d -m$(DIRMODE) "$(DESTDIR)$(mandir)/$$x/man$$y"; \ + install -m$(INSMODE) *.$$y "$(DESTDIR)$(mandir)/$$x/man$$y"; \ + done; \ done; \ \ if [ -f "$(srcdir)/doc/portage.html" ] ; then \ -- 2.26.2