Simplify install calls.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21977 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-01-20 21:57:57 +00:00
parent e34daff688
commit 36a3d4ef74
1 changed files with 6 additions and 8 deletions

View File

@ -256,20 +256,18 @@ ifeq ($(VIDIX),yes)
-install -m 755 $(INSTALLSTRIP) -p vidix/drivers/*.so $(LIBDIR)/mplayer/vidix -install -m 755 $(INSTALLSTRIP) -p vidix/drivers/*.so $(LIBDIR)/mplayer/vidix
endif endif
$(INSTALL) -d $(BINDIR) $(INSTALL) -d $(BINDIR)
$(INSTALL) -m 755 $(INSTALLSTRIP) mplayer$(EXESUF) \ $(INSTALL) -m 755 $(INSTALLSTRIP) mplayer$(EXESUF) $(BINDIR)
$(BINDIR)/mplayer$(EXESUF)
$(INSTALL) -d $(MANDIR)/man1 $(INSTALL) -d $(MANDIR)/man1
for i in $(MAN_LANG); do \ for i in $(MAN_LANG); do \
if test "$$i" = en ; then \ if test "$$i" = en ; then \
$(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/mplayer.1 ; \ $(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/ ; \
else \ else \
$(INSTALL) -d $(MANDIR)/$$i/man1 ; \ $(INSTALL) -d $(MANDIR)/$$i/man1 ; \
$(INSTALL) -c -m 644 DOCS/man/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \ $(INSTALL) -c -m 644 DOCS/man/$$i/mplayer.1 $(MANDIR)/$$i/man1/ ; \
fi ; \ fi ; \
done done
ifeq ($(MENCODER),yes) ifeq ($(MENCODER),yes)
$(INSTALL) -m 755 $(INSTALLSTRIP) mencoder$(EXESUF) \ $(INSTALL) -m 755 $(INSTALLSTRIP) mencoder$(EXESUF) $(BINDIR)
$(BINDIR)/mencoder$(EXESUF)
for i in $(MAN_LANG); do \ for i in $(MAN_LANG); do \
if test "$$i" = en ; then \ if test "$$i" = en ; then \
cd $(MANDIR)/man1 && ln -sf mplayer.1 mencoder.1 ; \ cd $(MANDIR)/man1 && ln -sf mplayer.1 mencoder.1 ; \
@ -286,9 +284,9 @@ ifeq ($(GUI),yes)
@echo "*** Download skin(s) at http://www.mplayerhq.hu/dload.html" @echo "*** Download skin(s) at http://www.mplayerhq.hu/dload.html"
@echo "*** for GUI, and extract to $(DATADIR)/skins/" @echo "*** for GUI, and extract to $(DATADIR)/skins/"
$(INSTALL) -d $(prefix)/share/pixmaps $(INSTALL) -d $(prefix)/share/pixmaps
$(INSTALL) -m 644 etc/mplayer.xpm $(prefix)/share/pixmaps/mplayer.xpm $(INSTALL) -m 644 etc/mplayer.xpm $(prefix)/share/pixmaps/
$(INSTALL) -d $(prefix)/share/applications $(INSTALL) -d $(prefix)/share/applications
$(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/mplayer.desktop $(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/
endif endif
$(INSTALL) -d $(CONFDIR) $(INSTALL) -d $(CONFDIR)
if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi