vdr-1.3.38 and plugin install

Message ID 1136734593.5208.11.camel@wopr.deltab.de
State New
Headers

Commit Message

Andreas Brachold Jan. 8, 2006, 3:36 p.m. UTC
  Hi,


i failed over install plugins via make plugin-install.

The define PLUGINLIBDIR=/opt/vdr-1.3.38/lib for gcc are correct used.
But plugins installed under /opt/vdr-1.3.38/bin/opt/vdr-1.3.38/lib

from my Make.config
### The directory environment:
PREFIX   = /opt/vdr-1.3.38
MANDIR   = $(PREFIX)/man
BINDIR   = $(PREFIX)/bin
PLUGINLIBDIR= $(PREFIX)/lib

And i wonder why "make plugins-clean" delete my installed plugins,
and not the plugins on build directory.

I've attached a possible solution.



Cu,
Andreas
  

Patch

--- Makefile.orig	2006-01-01 16:12:05.000000000 +0100
+++ Makefile	2006-01-08 16:22:14.000000000 +0100
@@ -192,7 +192,7 @@ 
 
 plugins-clean:
 	@for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do $(MAKE) -C "$(PLUGINDIR)/src/$$i" clean; done
-	@-rm -f $(PLUGINLIBDIR)/libvdr-*.so.$(VDRVERSION)
+	@-rm -f $(PLUGINDIR)/lib/libvdr-*.so.$(VDRVERSION)
 
 # Install the files:
 
@@ -209,8 +209,8 @@ 
             fi
 
 plugins-install:
-	@mkdir -p $(BINDIR)/$(PLUGINLIBDIR)
-	@cp $(PLUGINLIBDIR)/* $(BINDIR)/$(PLUGINLIBDIR)
+	@mkdir -p $(PLUGINLIBDIR)
+	@cp $(PLUGINDIR)/lib/libvdr-*.so.$(VDRVERSION) $(PLUGINLIBDIR)
 
 # Source documentation: