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 -------------- next part -------------- --- 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