[PATCH xserver 5/8] xmlrules.in: use pattern rules to enable dependencies
Alan Coopersmith
alan.coopersmith at oracle.com
Thu Nov 18 16:35:28 PST 2010
Gaetan Nadon wrote:
> This will allow a dependency to be specified as done in libX11:
>
> %.html: %.xml $(dist_spec_DATA)
> $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $<
>
> Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
> ---
> doc/xml/xmlrules.in | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/doc/xml/xmlrules.in b/doc/xml/xmlrules.in
> index 3a78569..468cfaf 100644
> --- a/doc/xml/xmlrules.in
> +++ b/doc/xml/xmlrules.in
> @@ -48,17 +48,17 @@ endif
>
> if HAVE_XMLTO_TEXT
> BUILT_DOC_FILES += $(TXT_FILES)
> -.xml.txt:
> +%.txt: %.xml
> $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) txt $<
> endif
>
> BUILT_DOC_FILES += $(HTML_FILES)
> -.xml.html:
> +%.html: %.xml
> $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $<
>
> if HAVE_FOP
> BUILT_DOC_FILES += $(PDF_FILES)
> -.xml.pdf:
> +%.pdf: %.xml
> $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $<
> endif
>
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the xorg-devel
mailing list