diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2010-11-21 14:27:58 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-11-24 11:44:35 -0800 |
commit | 7250f078c12fd20d5ac9150f54495926e5121461 (patch) | |
tree | f9987f8890872f27b2ff92cdbfce2c98cdb775cb /doc/xml/xmlrules-inst.in | |
parent | f33512b70cf0350a62df2ee2287a870d5fc991a8 (diff) |
doc: refactor Makefile and xmlrules.in code for reusability
A different approach which requires less variables setting
and internal knowledge of the reused code.
Changing from "install" to "not install" is very easy now.
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/xml/xmlrules-inst.in')
-rw-r--r-- | doc/xml/xmlrules-inst.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/xml/xmlrules-inst.in b/doc/xml/xmlrules-inst.in new file mode 100644 index 000000000..9b9027897 --- /dev/null +++ b/doc/xml/xmlrules-inst.in @@ -0,0 +1,23 @@ + +# The doc_sources variable contains one or more DocBook/XML source file. +# The generated documents will be installed in $(docdir), +# The DocBook/XML files will always be included in the tarball + +dist_doc_DATA = $(doc_sources) + +if HAVE_XMLTO +doc_DATA = $(doc_sources:.xml=.html) + +if HAVE_FOP +doc_DATA += $(doc_sources:.xml=.pdf) +endif + +if HAVE_XMLTO_TEXT +doc_DATA += $(doc_sources:.xml=.txt) +endif + +CLEANFILES = $(doc_DATA) +include $(top_srcdir)/doc/xml/xmlrules.in + +endif HAVE_XMLTO + |