On 07-08-2014 13:16, Bruce Dubbs wrote:
> Matt Burgess wrote:
>> On 07/08/2014 12:44, Fernando de Oliveira wrote:
>>
>>> Do I need to run "make validate" and "make"? Shouldn't "make" suffice?
>>
>> I'd have thought the 'make' target would depend on the 'validate' target
>> in the Makefile. That's at least how I thought the LFS book does things.
> 
> What is happening is:
> 
> blfs: html wget-list
> 
> html: $(BASEDIR)/index.html
> $(BASEDIR)/index.html: $(RENDERTMP)/blfs-html.xml
>   ...
> 
> $(RENDERTMP)/blfs-full.xml: general.ent $(ALLXML) $(ALLXSL)
>    @echo "Validating the book..."
>    $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
>    $(Q)xmllint --nonet --noent --xinclude --postvalid \
>      -o $(RENDERTMP)/blfs-full.xml index.xml
> 
> On the other hand, we have:
> 
> validate:
>    @echo "Validating the book..."
>    $(Q)xmllint --noout --nonet --xinclude --postvalid index.xml
> 
> Which does the same thing without creating $(RENDERTMP)/blfs-full.xml.
> 
> The Makefile is OK and a separate 'make validate' is not required when
> building the html.

Thanks, Matt and Bruce.


-- 
[]s,
Fernando
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to