]> git.sesse.net Git - vlc/commitdiff
Bring a non-installed ./vlc script that loads plugins from the build tree explicitly.
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 25 Feb 2008 17:50:59 +0000 (17:50 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 25 Feb 2008 17:50:59 +0000 (17:50 +0000)
Makefile.am

index f6f84695c03602047c3457b737d859c557397c75..39d32e9fdfe656afdedb6f076a18a2be71c253b4 100644 (file)
@@ -245,9 +245,10 @@ DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
 # Don't use it if you don't know what it is about.
 # Don't complain if it doesn't work. -- Courmisch
 libvlc:
-       cd src && $(MAKE) $(AM_MAKEFLAGS) src/libvlc.la
+       cd src && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
 
-core: libvlc vlc$(EXEEXT)
+core:
+       cd src && $(MAKE) $(AM_MAKEFLAGS) vlc
 
 .PHONY: libvlc core
 
@@ -312,6 +313,15 @@ qvlc: make-alias
 nvlc: make-alias
        $(MKALIAS) ncurses
 
+noinst_SCRIPTS = vlc
+
+vlc: core
+       rm -f -- vlc vlc.tmp
+       echo '#! /bin/sh' > vlc.tmp
+       echo 'exec "$$(dirname "$$0")/src/vlc$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp
+       chmod +x vlc.tmp
+       mv -f -- vlc.tmp vlc
+
 if HAVE_DARWIN
 # Create the MacOS X app
 noinst_DATA = VLC.app