Patch to Makefile so plugins are installed and man dirs are created
Commit Message
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
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.
@@ -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