Commit a58afe8e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent b0152eca
...@@ -236,6 +236,14 @@ vlc-config.in: vlc-config.in.in ...@@ -236,6 +236,14 @@ vlc-config.in: vlc-config.in.in
CLEANFILES = $(BUILT_SOURCES_clean) stamp-builtin CLEANFILES = $(BUILT_SOURCES_clean) stamp-builtin
DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile DISTCLEANFILES = $(BUILT_SOURCES_distclean) vlc-config.in compile
# Shortcut for developpers to rebuild the core (libvlc + vlc)
# 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) $(LIB_libvlc)
.PHONY: libvlc
############################################################################### ###############################################################################
# Building vlc # Building vlc
############################################################################### ###############################################################################
...@@ -262,15 +270,9 @@ LIBVLC = src/$(LIB_libvlc) ...@@ -262,15 +270,9 @@ LIBVLC = src/$(LIB_libvlc)
nice: nice:
$(top_builddir)/compile $(top_builddir)/compile
# Shortcut for developpers to rebuild the core (libvlc + vlc)
# 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) $(LIB_libvlc)
core: libvlc vlc$(EXEEXT) core: libvlc vlc$(EXEEXT)
.PHONY: libvlc core .PHONY: core
vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES) vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES)
@rm -f vlc$(EXEEXT) @rm -f vlc$(EXEEXT)
...@@ -309,19 +311,35 @@ vlc-bundle: vlc ...@@ -309,19 +311,35 @@ vlc-bundle: vlc
find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \; find $(top_builddir)/vlc-bundle -type f -exec mimeset -f "{}" \;
endif endif
# Install the symlinks ###############################################################################
install-exec-local: install-binPROGRAMS # Building aliases
inst="`echo vlc | sed -e '$(transform)'`" ; \ ###############################################################################
for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
rm -f "$(DESTDIR)$(bindir)/$$i" && \ ALL_ALIASES = cvlc rvlc svlc wxvlc qvlc nvlc
ln -sf "$${inst}" "$(DESTDIR)$(bindir)/$$i" ; \ bin_SCRIPTS += $(ALIASES)
fi ; done EXTRA_SCRIPTS = $(ALL_ALIASES)
# the opposite of install-{data,exec}-local dist_noinst_SCRIPTS += make-alias
uninstall-local:
for i in "" $(ALIASES) ; do if test -n "$$i" ; then \ MKALIAS = bindir="$(bindir)" transform="$(transform)" $(top_srcdir)/make-alias $@
rm -f "$(DESTDIR)$(bindir)/$$i" ; \
fi ; done cvlc: make-alias
$(MKALIAS) dummy
rvlc: make-alias
$(MKALIAS) rc
svlc: make-alias
$(MKALIAS) skins2
wxvlc: make-alias
$(MKALIAS) wx
qvlc: make-alias
$(MKALIAS) qt4
nvlc: make-alias
$(MKALIAS) ncurses
if HAVE_DARWIN if HAVE_DARWIN
# Create the MacOS X app # Create the MacOS X app
......
#! /bin/sh
# Interface alias build script for VLC
# Copyright © 2007 Rémi Denis-Courmont.
OUT="$1"
IFACE="$2"
cat > "$OUT.tmp" << EOF
#! /bin/sh
exec $bindir/`echo vlc | sed -e "$transform"` -I "$IFACE" "\$@"
EOF
chmod +x "$OUT.tmp"
mv -f -- "$OUT.tmp" "$OUT"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment