Mercurial > mplayer.hg
comparison Makefile @ 17966:916d035cec47
Simplify directory creation in the install target.
author | diego |
---|---|
date | Sun, 26 Mar 2006 21:44:55 +0000 |
parents | ac071d4aafd2 |
children | 9a5a62f480e6 |
comparison
equal
deleted
inserted
replaced
17965:a1dc210f20b3 | 17966:916d035cec47 |
---|---|
461 install: $(ALL_PRG) | 461 install: $(ALL_PRG) |
462 ifeq ($(VIDIX),yes) | 462 ifeq ($(VIDIX),yes) |
463 $(MAKE) -C libdha install | 463 $(MAKE) -C libdha install |
464 $(MAKE) -C vidix install | 464 $(MAKE) -C vidix install |
465 endif | 465 endif |
466 if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi | 466 $(INSTALL) -d $(BINDIR) |
467 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG) | 467 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG) |
468 ifeq ($(GUI),yes) | 468 ifeq ($(GUI),yes) |
469 -ln -sf $(PRG) $(BINDIR)/gmplayer | 469 -ln -sf $(PRG) $(BINDIR)/gmplayer |
470 endif | 470 endif |
471 if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi | 471 $(INSTALL) -d $(MANDIR)/man1 |
472 for i in $(MAN_LANG); do \ | 472 for i in $(MAN_LANG); do \ |
473 if test "$$i" = en ; then \ | 473 if test "$$i" = en ; then \ |
474 $(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/mplayer.1 ; \ | 474 $(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/mplayer.1 ; \ |
475 else \ | 475 else \ |
476 mkdir -p $(MANDIR)/$$i/man1 ; \ | 476 $(INSTALL) -d $(MANDIR)/$$i/man1 ; \ |
477 $(INSTALL) -c -m 644 DOCS/man/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \ | 477 $(INSTALL) -c -m 644 DOCS/man/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \ |
478 fi ; \ | 478 fi ; \ |
479 done | 479 done |
480 ifeq ($(MENCODER),yes) | 480 ifeq ($(MENCODER),yes) |
481 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER) | 481 $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER) |
485 else \ | 485 else \ |
486 ln -sf mplayer.1 $(MANDIR)/$$i/man1/mencoder.1 ; \ | 486 ln -sf mplayer.1 $(MANDIR)/$$i/man1/mencoder.1 ; \ |
487 fi ; \ | 487 fi ; \ |
488 done | 488 done |
489 endif | 489 endif |
490 @if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi | 490 @$(INSTALL) -d $(DATADIR) |
491 @if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi | 491 @$(INSTALL) -d $(DATADIR)/font |
492 @if test ! -f $(DATADIR)/font/font.desc ; then \ | 492 @if test ! -f $(DATADIR)/font/font.desc ; then \ |
493 echo "*** Download font at http://www.mplayerhq.hu/dload.html" ; \ | 493 echo "*** Download font at http://www.mplayerhq.hu/dload.html" ; \ |
494 echo "*** for OSD/Subtitles support and extract to $(DATADIR)/font/" ; \ | 494 echo "*** for OSD/Subtitles support and extract to $(DATADIR)/font/" ; \ |
495 fi | 495 fi |
496 ifeq ($(GUI),yes) | 496 ifeq ($(GUI),yes) |
497 @if test ! -d $(DATADIR)/Skin ; then mkdir -p $(DATADIR)/Skin ; fi | 497 @$(INSTALL) -d $(DATADIR)/Skin |
498 @echo "*** Download skin(s) at http://www.mplayerhq.hu/dload.html" | 498 @echo "*** Download skin(s) at http://www.mplayerhq.hu/dload.html" |
499 @echo "*** for GUI, and extract to $(DATADIR)/Skin/" | 499 @echo "*** for GUI, and extract to $(DATADIR)/Skin/" |
500 @if test ! -d $(prefix)/share/pixmaps ; then mkdir -p $(prefix)/share/pixmaps ; fi | 500 @$(INSTALL) -d $(prefix)/share/pixmaps |
501 $(INSTALL) -m 644 Gui/mplayer/pixmaps/mplayer-desktop.xpm $(prefix)/share/pixmaps/mplayer-desktop.xpm | 501 $(INSTALL) -m 644 Gui/mplayer/pixmaps/mplayer-desktop.xpm $(prefix)/share/pixmaps/mplayer-desktop.xpm |
502 @if test ! -d $(prefix)/share/applications ; then mkdir -p $(prefix)/share/applications ; fi | 502 @$(INSTALL) -d $(prefix)/share/applications |
503 $(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/mplayer.desktop | 503 $(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/mplayer.desktop |
504 endif | 504 endif |
505 @if test ! -d $(CONFDIR) ; then mkdir -p $(CONFDIR) ; fi | 505 @$(INSTALL) -d $(CONFDIR) |
506 @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi | 506 @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi |
507 ifeq ($(DVDKIT_SHARED),yes) | 507 ifeq ($(DVDKIT_SHARED),yes) |
508 ifeq ($(DVDKIT2),yes) | 508 ifeq ($(DVDKIT2),yes) |
509 if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi | 509 $(INSTALL) -d $(LIBDIR) |
510 $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit2/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so | 510 $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit2/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so |
511 else | 511 else |
512 ifeq ($(DVDKIT),yes) | 512 ifeq ($(DVDKIT),yes) |
513 if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi | 513 $(INSTALL) -d $(LIBDIR) |
514 $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so | 514 $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so |
515 endif | 515 endif |
516 endif | 516 endif |
517 endif | 517 endif |
518 | 518 |