<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Thu, 2010-11-18 at 16:44 -0800, Alan Coopersmith wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#737373">> +%.pdf: %.xml $(XML_ENT_DIR)/xserver.ent</FONT></TT><BR>
</BLOCKQUOTE>
The generated files depend on xserver.ent which is what pattern rules allow you to do.<BR>
This is not possible with the "<TT>.xml.html:</TT>" suffix rules.<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#737373">> $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $<</FONT></TT><BR>
<TT><FONT COLOR="#737373">> endif</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#737373">> @@ -66,8 +66,3 @@ endif HAVE_XMLTO</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#737373">> CLEAN_DOC_FILES = $(TXT_FILES) $(HTML_FILES) $(PDF_FILES)</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#737373">> -# All the files we build depend on the entities</FONT></TT><BR>
<TT><FONT COLOR="#737373">> -$(BUILT_DOC_FILES): $(XML_ENT_DIR)/xserver.ent</FONT></TT><BR>
</BLOCKQUOTE>
This target worked but is no longer needed due to pattern rules above.<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#737373">> -</FONT></TT><BR>
<TT><FONT COLOR="#737373">> -$(XML_ENT_DIR)/xserver.ent:</FONT></TT><BR>
<TT><FONT COLOR="#737373">> - (cd $(XML_ENT_DIR) && $(MAKE) $(AM_MAKEFLAGS) $(@F))</FONT></TT><BR>
</BLOCKQUOTE>
My current level of understanding says it is impossible for this target to ever work,<BR>
under any circumstances, even when invoked manually. It would have to be a PHONEY target.<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
<TT><FONT COLOR="#1a1a1a">I don't see what this buys you, but it seems to lose the building</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">of xserver.ent when needed. (Though since it's built by configure</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">I guess it shouldn't be needed except in unusual circumstances.)</FONT></TT><BR>
<BR>
</BLOCKQUOTE>
With the patches, I could not find a scenario where the docs did not get rebuilt when<BR>
xserver.ent changes (due to autoreconf).
</BODY>
</HTML>