Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Fix to copy plugins during "make install"



> 
>  install:
>         @cp vdr runvdr $(BINDIR)
> +       @cp $(PLUGINLIBDIR)/* $(BINDIR)/$(PLUGINLIBDIR)/
>         @gzip -c vdr.1 > $(MANDIR)/man1/vdr.1.gz
>         @gzip -c vdr.5 > $(MANDIR)/man5/vdr.5.gz
>         @if [ ! -d $(VIDEODIR) ]; then\
> 

Actually, this may be a little better.  I always remember installing vdr the
first time and it fails because the man dir was not created. How about this
instead:

--- vdr-1.3.12-mod/Makefile     2004-05-16 03:51:44.000000000 -0700
+++ vdr-1.3.12-mod-eepg-t1-ac3-pref/Makefile    2004-07-22
22:56:50.000000000 -0700
@@ -159,7 +170,17 @@
 # Install the files:

 install:
+       @if [ ! -d $(BINDIR) ]; then\
+           mkdir $(BINDIR);\
+           fi
        @cp vdr runvdr $(BINDIR)
+       @if [ ! -d $(BINDIR)/$(PLUGINLIBDIR) ]; then\
+           mkdir $(BINDIR)/$(PLUGINLIBDIR);\
+           fi
+       @if [ ! -d $(MANDIR) ]; then\
+           mkdir $(MANDIR);\
+           fi
+       @cp $(PLUGINLIBDIR)/* $(BINDIR)/$(PLUGINLIBDIR)/
        @gzip -c vdr.1 > $(MANDIR)/man1/vdr.1.gz
        @gzip -c vdr.5 > $(MANDIR)/man5/vdr.5.gz
        @if [ ! -d $(VIDEODIR) ]; then\





Home | Main Index | Thread Index