From: Ian Campbell Subject: Re: [PATCH 5/5] make: Make "src-tarball" target actually make a source tarball Date: Thu, 17 Jul 2014 10:21:13 +0100 Message-ID: <1405588873.8734.1.camel@kazak.uk.xensource.com> References: <1405354526-20929-1-git-send-email-george.dunlap@eu.citrix.com> <1405354526-20929-5-git-send-email-george.dunlap@eu.citrix.com> <21446.38146.96203.437720@mariner.uk.xensource.com> <1405529773.1087.88.camel@kazak.uk.xensource.com> <53C6BA3D.5060403@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53C6BA3D.5060403@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Anthony Perard , Ian Jackson , Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-16 at 18:45 +0100, George Dunlap wrote: > On 07/16/2014 05:56 PM, Ian Campbell wrote: > > On Wed, 2014-07-16 at 16:06 +0100, Ian Jackson wrote: > >> George Dunlap writes ("[PATCH 5/5] make: Make "src-tarball" target actually make a source tarball"): > >>> At the moment, making a release tarball is an annoyingly manual > >>> process that involves running "git archive" into a temporary directory. > >> ... > >>> +src-tarball: subtree-update > >>> + bash ./tools/misc/mktarball $(XEN_ROOT) $$(git describe) > >> > >> Does this absolutely have to depend on subtree-update ? Perhaps we > >> need a new "make the subtrees exist" target ? > > > > Given that he makes the force targets depend on the dir targets in one > > of the earlier patches I think subtree-update might already be that > > target... > > I think he might have been thinking that it would be nice to be able to > make a tarball without doing the force update -- i.e., if you had > checked out a particular version of one of the trees, just use that; but > if you hadn't checked anything out, go fetch the tree. > > I could do that. :-) It means SOP would have to be two steps "make > subdir-update ; make src-tarball-release". Personally I think it's a > bit of a trap waiting to happen, but I can see the logic behind it. It's a bit niche perhaps, so perhaps make it so you can do make src-tarball-release FORCE_CURRENT_SUBTREES=1 by conditionalising the dep? Ian.