From patchwork Sun Aug 14 07:58:38 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "C.Y.M" X-Patchwork-Id: 11974 Received: from c-24-10-6-146.hsd1.ca.comcast.net ([24.10.6.146] helo=nofear.bounceme.net) by www.linuxtv.org with esmtp (Exim 4.34) id 1E4DNZ-0003Pb-N5 for vdr@linuxtv.org; Sun, 14 Aug 2005 09:58:01 +0200 Received: from [10.1.1.66] (hades [10.1.1.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by nofear.bounceme.net (Postfix) with ESMTP id 9E8487356D for ; Sun, 14 Aug 2005 00:57:16 -0700 (PDT) Message-ID: <42FEF9AE.3030309@syphir.sytes.net> Date: Sun, 14 Aug 2005 00:58:38 -0700 From: "C.Y.M" Organization: CooLNeT User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vdr X-Enigmail-Version: 0.92.0.0 Subject: [vdr] Patch to Makefile so plugins are installed and man dirs are created X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syphir@syphir.sytes.net, Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2005 07:58:01 -0000 Status: O X-Status: X-Keywords: X-UID: 4165 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. Best Regards, C.Y.M. --- vdr-1.3.28/Makefile.orig 2005-07-31 04:20:20.000000000 -0700 +++ vdr-1.3.28/Makefile 2005-08-13 18:43:19.000000000 -0700 @@ -183,11 +183,24 @@ # Install the files: install: + @if [ ! -d $(BINDIR) ]; then\ + mkdir -p $(BINDIR);\ + fi @cp vdr runvdr $(BINDIR) + @if [ ! -d $(BINDIR)/$(PLUGINLIBDIR) ]; then\ + mkdir -p $(BINDIR)/$(PLUGINLIBDIR);\ + fi + @cp $(PLUGINLIBDIR)/* $(BINDIR)/$(PLUGINLIBDIR)/ + @if [ ! -d $(MANDIR)/man1 ]; then\ + mkdir -p $(MANDIR)/man1;\ + fi + @if [ ! -d $(MANDIR)/man5 ]; then\ + mkdir -p $(MANDIR)/man5;\ + fi @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