# 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
nvlc: make-alias
$(MKALIAS) ncurses
+noinst_SCRIPTS = vlc$(EXEEXT)
+
+vlc$(EXEEXT): core
+ rm -f vlc$(EXEEXT)
+ ln -s src/vlc$(EXEEXT)
+# 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
$(top_builddir)/VLC.app
rm -Rf $(top_builddir)/tmp
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS
- $(INSTALL) $(top_builddir)/.libs/vlc \
+ $(INSTALL) $(top_builddir)/src/.libs/vlc \
$(top_builddir)/VLC.app/Contents/MacOS/VLC
ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
$(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
fi
# Copy relevant files
- cp "$(top_builddir)/.libs/vlc$(EXEEXT)" "$(top_builddir)/vlc-$(VERSION)/"
+ cp "$(top_builddir)/src/.libs/vlc$(EXEEXT)" "$(top_builddir)/vlc-$(VERSION)/"
cp "$(top_srcdir)/extras/package/win32/vlc.exe.manifest" "$(top_builddir)/vlc-$(VERSION)/"
cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "vlc-$(VERSION)/"
cp "$(top_builddir)/src/.libs/libvlc-control$(LIBEXT)" "vlc-$(VERSION)/"