summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--misc/Makefile.common8
2 files changed, 11 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 81bf51c8d..c8c4dc9a6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,7 +70,11 @@ slackbuild:
install-data-hook:
- @if [ -f "$(top_srcdir)/post-install.sh" ]; then $(top_srcdir)/post-install.sh; fi
+ @rm -f $(XINE_PLUGINDIR)/*.la
+ @rm -f $(XINE_PLUGINDIR)/*/*.la
+ @if test -x "$(top_srcdir)/post-install.sh" ; then \
+ $(top_srcdir)/post-install.sh ; \
+ fi
mostlyclean-generic:
diff --git a/misc/Makefile.common b/misc/Makefile.common
index 399aa54fb..12731103f 100644
--- a/misc/Makefile.common
+++ b/misc/Makefile.common
@@ -5,8 +5,12 @@ $(XINE_LIB):
@cd $(top_srcdir)/src/xine-engine && $(MAKE)
install-data-hook:
- @if [ -x "$(top_srcdir)/post-install.sh" ] && [ "$$MAKELEVEL" -eq 0 ]; then \
- $(top_srcdir)/post-install.sh; \
+ @if test $$MAKELEVEL -le 3 ; then \
+ rm -f $(XINE_PLUGINDIR)/*.la ; \
+ rm -f $(XINE_PLUGINDIR)/*/*.la ; \
+ if test -x "$(top_srcdir)/post-install.sh" ; then \
+ $(top_srcdir)/post-install.sh ; \
+ fi \
fi
debug: