From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v2 6/7] docs/build: Move install checks into individual build targets Date: Tue, 21 Apr 2015 16:50:37 +0100 Message-ID: <553671CD.3060307@citrix.com> References: <553664C9.1010601@citrix.com> <1429631225-19956-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1429631225-19956-1-git-send-email-andrew.cooper3@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: Xen-devel Cc: Wei Liu , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org On 21/04/15 16:47, Andrew Cooper wrote: > For top-level targets which use more than a single program to produce content > (txt already, pdf once pandoc is supported), these current checks are > unsuitable. > > By moving the the install checks to the rules which actually use the programs, > it is now possible to build a subset of a top-level target depending on the > installed programs. > > As a bonus, it removes the need to recurse for txt, man-pages and pdf targets. > > A side effect of this is that every individual source which cannot be > generated will have a specific message logged, giving the file and program. > As such, these message are updated to consistently report the target file > which was not generated. > > Finally, update "ifdef foo" to "ifneq($(foo),)" to be more resilient to errors > caused by having foo defined as an empty string. > > Signed-off-by: Andrew Cooper > Alternatively, the entire v2 series can be obtained from git://xenbits.xen.org/people/andrewcoop/xen.git docs-cleanup-v2 ~Andrew