Changeset a58afe8e62c672b06e047f2475e69977908dbb7d

Show
Ignore:
Timestamp:
12/09/07 22:36:32 (9 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1197236192 +0000
git-parent:

[b0152eca135b22c048753d7a29a285df71b7c051]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1197236192 +0000
Message:

Build VLC aliases cleanly (don't need to parse argv[0])

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.am

    ref80592 ra58afe8  
    237237DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile 
    238238 
     239# Shortcut for developpers to rebuild the core (libvlc + vlc) 
     240# Don't use it if you don't know what it is about. 
     241# Don't complain if it doesn't work. -- Courmisch 
     242libvlc: 
     243    cd src && $(MAKE) $(AM_MAKEFLAGS) $(LIB_libvlc) 
     244 
     245.PHONY: libvlc 
     246 
    239247############################################################################### 
    240248# Building vlc 
     
    263271    $(top_builddir)/compile 
    264272 
    265 # Shortcut for developpers to rebuild the core (libvlc + vlc) 
    266 # Don't use it if you don't know what it is about. 
    267 # Don't complain if it doesn't work. -- Courmisch 
    268 libvlc: 
    269     cd src && $(MAKE) $(AM_MAKEFLAGS) $(LIB_libvlc) 
    270  
    271273core: libvlc vlc$(EXEEXT) 
    272274 
    273 .PHONY: libvlc core 
     275.PHONY: core 
    274276 
    275277vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES) 
     
    310312endif 
    311313 
    312 # Install the symlinks 
    313 install-exec-local: install-binPROGRAMS 
    314     inst="`echo vlc | sed -e '$(transform)'`" ; \ 
    315     for i in "" $(ALIASES) ; do if test -n "$$i" ; then \ 
    316       rm -f "$(DESTDIR)$(bindir)/$$i" && \ 
    317       ln -sf "$${inst}" "$(DESTDIR)$(bindir)/$$i" ; \ 
    318     fi ; done 
    319  
    320 # the opposite of install-{data,exec}-local 
    321 uninstall-local: 
    322     for i in "" $(ALIASES) ; do if test -n "$$i" ; then \ 
    323       rm -f "$(DESTDIR)$(bindir)/$$i" ; \ 
    324     fi ; done 
     314############################################################################### 
     315# Building aliases 
     316############################################################################### 
     317 
     318ALL_ALIASES = cvlc rvlc svlc wxvlc qvlc nvlc 
     319bin_SCRIPTS += $(ALIASES) 
     320EXTRA_SCRIPTS = $(ALL_ALIASES) 
     321 
     322dist_noinst_SCRIPTS += make-alias 
     323 
     324MKALIAS = bindir="$(bindir)" transform="$(transform)" $(top_srcdir)/make-alias $@ 
     325 
     326cvlc: make-alias 
     327    $(MKALIAS) dummy 
     328 
     329rvlc: make-alias 
     330    $(MKALIAS) rc 
     331 
     332svlc: make-alias 
     333    $(MKALIAS) skins2 
     334 
     335wxvlc: make-alias 
     336    $(MKALIAS) wx 
     337 
     338qvlc: make-alias 
     339    $(MKALIAS) qt4 
     340 
     341nvlc: make-alias 
     342    $(MKALIAS) ncurses 
    325343 
    326344if HAVE_DARWIN