From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH] docs: make .txt files writable when building from r/o sources Date: Fri, 04 Jul 2014 15:51:38 +0100 Message-ID: <53B6DB9A0200007800020CE6@mail.emea.novell.com> References: <53B6D9CF0200007800020CB9@mail.emea.novell.com> <53B6BE68.3000408@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X34pw-0001eM-C0 for xen-devel@lists.xenproject.org; Fri, 04 Jul 2014 14:51:40 +0000 In-Reply-To: <53B6BE68.3000408@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 04.07.14 at 16:47, wrote: > On 04/07/14 15:43, Jan Beulich wrote: >> Otherwise an incremental build will fail to overwrite the destination >> files. >> >> Signed-off-by: Jan Beulich >> >> --- a/docs/Makefile >> +++ b/docs/Makefile >> @@ -125,6 +125,7 @@ endif >> html/%.txt: %.txt >> $(INSTALL_DIR) $(@D) >> cp $< $@ >> + chmod u+w $@ > > Perhaps $(INSTALL_DATA) in preference to cp + chmod ? I wasn't certain about the validity of the INSTALL_DIR use in a non- install rule. If that's indeed fine, then INSTALL_DATA - if it does what I want - would likely be the better thing. Jan