aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar gabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-17 13:06:03 +0000
committerGravatar gabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-17 13:06:03 +0000
commitc895e2436bdedaed1c7c9fb5a2ec410d5eb5c176 (patch)
treef522c1b9f1cf521fe74ec485985ac49ce57b67f7 /Makefile
parent4923b022eb47c0a587e9cb57fd4ab9742d3945e4 (diff)
patch by "Andriy N. Gritsenko" <andrej@lucky.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9452 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 970861c29b..03022b669c 100644
--- a/Makefile
+++ b/Makefile
@@ -247,10 +247,25 @@ ifeq ($(GUI),yes)
endif
if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi
$(INSTALL) -c -m 644 DOCS/en/mplayer.1 $(MANDIR)/man1/mplayer.1
- @for LCLMANS in de fr hu pl; do $(INSTALL) -D -c -m 644 DOCS/$$LCLMANS/mplayer.1 $(MANDIR)/$$LCLMANS/man1/mplayer.1; done
+ @if [ -n "$(LANGUAGES)" ]; then \
+ for i in $(LANGUAGES); do \
+ if [ -f DOCS/$$i/mplayer.1 ]; then \
+ echo "Installing manual for language $$i" ; \
+ mkdir -p $(MANDIR)/$$i/man1 ; \
+ $(INSTALL) -c -m 644 DOCS/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \
+ fi ; \
+ done ; \
+ fi
ifeq ($(MENCODER),yes)
$(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER)
- @for LCLMANS in de fr hu pl; do ln -sf mplayer.1 $(MANDIR)/$$LCLMANS/man1/mencoder.1; done
+ ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1
+ @if [ -n "$(LANGUAGES)" ]; then \
+ for i in $(LANGUAGES); do \
+ if [ -f DOCS/$$i/mplayer.1 ]; then \
+ ln -sf mplayer.1 $(MANDIR)/$$i/man1/mencoder.1 ; \
+ fi ; \
+ done ; \
+ fi
endif
@if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi
@if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi