summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-11-21 14:27:55 -0500
committerKeith Packard <keithp@keithp.com>2010-11-24 11:44:00 -0800
commit73841074eb856e6be3b9f9e3fc2d2721443166ab (patch)
treeacb6a0211ca86d7ef421af31047a025ef2f23692 /doc
parent97e307dda201d6ba28a723c21a95e484921d1b08 (diff)
xmlrules.in: use pattern rules to enable dependencies
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 $< Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/xml/xmlrules.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/xml/xmlrules.in b/doc/xml/xmlrules.in
index 987d6b6ed..f3b76f9b8 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