Makefile.am revision 25b89263
125b89263Smrg# 225b89263Smrg# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 325b89263Smrg# 425b89263Smrg# Permission is hereby granted, free of charge, to any person obtaining a 525b89263Smrg# copy of this software and associated documentation files (the "Software"), 625b89263Smrg# to deal in the Software without restriction, including without limitation 725b89263Smrg# the rights to use, copy, modify, merge, publish, distribute, sublicense, 825b89263Smrg# and/or sell copies of the Software, and to permit persons to whom the 925b89263Smrg# Software is furnished to do so, subject to the following conditions: 1025b89263Smrg# 1125b89263Smrg# The above copyright notice and this permission notice (including the next 1225b89263Smrg# paragraph) shall be included in all copies or substantial portions of the 1325b89263Smrg# Software. 1425b89263Smrg# 1525b89263Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1625b89263Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1725b89263Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1825b89263Smrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1925b89263Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 2025b89263Smrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2125b89263Smrg# DEALINGS IN THE SOFTWARE. 2225b89263Smrg# 2325b89263Smrg 2425b89263Smrgif ENABLE_SPECS 2525b89263Smrgdoc_sources = xtestlib.xml recordlib.xml 2625b89263Smrgdist_doc_DATA = $(doc_sources) 2725b89263Smrg 2825b89263Smrgif HAVE_XMLTO 2925b89263Smrgdoc_DATA = $(doc_sources:.xml=.html) 3025b89263Smrg 3125b89263Smrgif HAVE_FOP 3225b89263Smrgdoc_DATA += $(doc_sources:.xml=.ps) $(doc_sources:.xml=.pdf) 3325b89263Smrgendif 3425b89263Smrg 3525b89263Smrgif HAVE_XMLTO_TEXT 3625b89263Smrgdoc_DATA += $(doc_sources:.xml=.txt) 3725b89263Smrgendif 3825b89263Smrg 3925b89263Smrgif HAVE_STYLESHEETS 4025b89263SmrgXMLTO_FLAGS = -m $(XSL_STYLESHEET) 4125b89263Smrg 4225b89263Smrgdoc_DATA += xorg.css 4325b89263Smrgxorg.css: $(STYLESHEET_SRCDIR)/xorg.css 4425b89263Smrg $(AM_V_GEN)cp -pf $(STYLESHEET_SRCDIR)/xorg.css $@ 4525b89263Smrgendif 4625b89263Smrg 4725b89263SmrgCLEANFILES = $(doc_DATA) 4825b89263Smrg 4925b89263SmrgSUFFIXES = .xml .ps .pdf .txt .html 5025b89263Smrg 5125b89263Smrg.xml.txt: 5225b89263Smrg $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) txt $< 5325b89263Smrg 5425b89263Smrg.xml.html: 5525b89263Smrg $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $< 5625b89263Smrg 5725b89263Smrg.xml.pdf: 5825b89263Smrg $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $< 5925b89263Smrg 6025b89263Smrg.xml.ps: 6125b89263Smrg $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop ps $< 6225b89263Smrg 6325b89263Smrgendif HAVE_XMLTO 6425b89263Smrgendif ENABLE_SPECS 65