Patch to Makefile so plugins are installed and man dirs are created

Message ID 42FF2E8E.3060108@cadsoft.de
State New
Headers

Commit Message

Klaus Schmidinger Aug. 14, 2005, 11:44 a.m. UTC
  C.Y.M wrote:
> Hello,
> 
> Attached is a patch so VDR does not error during the installation if the man
> directories do not exist.  Also, this patch installs the plugins as well as the
> vdr binary when "make install" is used.

I'd say the attached reduced version should suffice, since 'mkdir -p'
behaves nicely if the directory already exists, so there's no need
to check this first.

Klaus
  

Comments

C.Y.M Aug. 14, 2005, 1:51 p.m. UTC | #1
Klaus Schmidinger wrote:
> C.Y.M wrote:
> 
>> Hello,
>>
>> Attached is a patch so VDR does not error during the installation if
>> the man
>> directories do not exist.  Also, this patch installs the plugins as
>> well as the
>> vdr binary when "make install" is used.
> 
> 
> I'd say the attached reduced version should suffice, since 'mkdir -p'
> behaves nicely if the directory already exists, so there's no need
> to check this first.
> 

Looks good. Thanks.

Best Regards.
  

Patch

--- Makefile	2005/07/31 11:20:20	1.76
+++ Makefile	2005/08/14 11:42:20
@@ -183,11 +183,16 @@ 
 # Install the files:
 
 install:
+	@mkdir -p $(BINDIR)
 	@cp vdr runvdr $(BINDIR)
+	@mkdir -p $(BINDIR)/$(PLUGINLIBDIR)
+	@cp $(PLUGINLIBDIR)/* $(BINDIR)/$(PLUGINLIBDIR)
+	@mkdir -p $(MANDIR)/man1
+	@mkdir -p $(MANDIR)/man5
 	@gzip -c vdr.1 > $(MANDIR)/man1/vdr.1.gz
 	@gzip -c vdr.5 > $(MANDIR)/man5/vdr.5.gz
 	@if [ ! -d $(VIDEODIR) ]; then\
-            mkdir $(VIDEODIR);\
+            mkdir -p $(VIDEODIR);\
             cp *.conf $(VIDEODIR);\
             fi