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

Implement clean with --enable-libtool

May fix builtins recompilation (theora, flac...)
parent 17ac4bd5
...@@ -212,6 +212,7 @@ NULL = ...@@ -212,6 +212,7 @@ NULL =
libvlc_LTLIBRARIES = libvlc_LTLIBRARIES =
EXTRA_DIST = Modules.am EXTRA_DIST = Modules.am
BUILT_SOURCES = BUILT_SOURCES =
clean_modules =
SUBDIRS = ${subdirs} SUBDIRS = ${subdirs}
SUFFIXES = _plugin\$(LIBEXT) _plugin.a SUFFIXES = _plugin\$(LIBEXT) _plugin.a
...@@ -272,6 +273,18 @@ endif ...@@ -272,6 +273,18 @@ endif
mostlyclean-local: mostlyclean-local:
-rm -f *.a *\$(LIBEXT) -rm -f *.a *\$(LIBEXT)
clean-local: \$(clean_modules)
if USE_LIBTOOL
@if test -z "\$(libvlc_LTLIBRARIES)"; then \
l=\$\$(\$(VLC_CONFIG) --list plugin); \
p=\`for mod in \$(mods); do case "\$\$l " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \
l=\$\$(\$(VLC_CONFIG) --list builtin); \
s=\`for mod in \$(mods); do case "\$\$l " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}.la" ;; esac; done\` ; \
test -z "\$\$p\$\$s" || \
\$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$p\$\$s" clean ; \
fi
endif
### automake creates libvlcdir after running install-*-local ### automake creates libvlcdir after running install-*-local
### so we have to create it ourselves first ### so we have to create it ourselves first
install-exec-local: all-modules install-exec-local: all-modules
...@@ -376,7 +389,7 @@ EOF ...@@ -376,7 +389,7 @@ EOF
EOF EOF
if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
clean-local: clean-${mod} clean_modules += clean-${mod}
clean-${mod}: clean-${mod}:
-test -z "\$(nodist_SOURCES_${mod})" || rm -f \$(nodist_SOURCES_${mod}) -test -z "\$(nodist_SOURCES_${mod})" || rm -f \$(nodist_SOURCES_${mod})
...@@ -421,8 +434,8 @@ lib${mod}_a_SOURCES = \$(SOURCES_${mod}) ...@@ -421,8 +434,8 @@ lib${mod}_a_SOURCES = \$(SOURCES_${mod})
lib${mod}_la_SOURCES = \$(SOURCES_${mod}) lib${mod}_la_SOURCES = \$(SOURCES_${mod})
EOF EOF
if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
nodist_lib${mod}_a_SOURCES = ${PRIVATE}\$(nodist_SOURCES_${mod}) nodist_lib${mod}_a_SOURCES = \$(nodist_SOURCES_${mod})
nodist_lib${mod}_la_SOURCES = ${PRIVATE}\$(nodist_SOURCES_${mod}) nodist_lib${mod}_la_SOURCES = \$(nodist_SOURCES_${mod})
EOF EOF
fi fi
cat >> "${makf}" << EOF cat >> "${makf}" << EOF
......
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