Makefile.am revision 37eb1ca1
137eb1ca1Smrg#
237eb1ca1Smrg# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
337eb1ca1Smrg#
437eb1ca1Smrg# Permission is hereby granted, free of charge, to any person obtaining a
537eb1ca1Smrg# copy of this software and associated documentation files (the "Software"),
637eb1ca1Smrg# to deal in the Software without restriction, including without limitation
737eb1ca1Smrg# the rights to use, copy, modify, merge, publish, distribute, sublicense,
837eb1ca1Smrg# and/or sell copies of the Software, and to permit persons to whom the
937eb1ca1Smrg# Software is furnished to do so, subject to the following conditions:
1037eb1ca1Smrg#
1137eb1ca1Smrg# The above copyright notice and this permission notice (including the next
1237eb1ca1Smrg# paragraph) shall be included in all copies or substantial portions of the
1337eb1ca1Smrg# Software.
1437eb1ca1Smrg#
1537eb1ca1Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1637eb1ca1Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1737eb1ca1Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1837eb1ca1Smrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1937eb1ca1Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2037eb1ca1Smrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2137eb1ca1Smrg# DEALINGS IN THE SOFTWARE.
2237eb1ca1Smrg#
2337eb1ca1Smrg
2437eb1ca1Smrgif ENABLE_SPECS
2537eb1ca1Smrg
2637eb1ca1Smrgspecdir = $(docdir)/$(subdir)
2737eb1ca1Smrgdoc_sources = inputlib.xml
2837eb1ca1Smrgdist_spec_DATA = $(doc_sources)	\
2937eb1ca1Smrg	library.xml		\
3037eb1ca1Smrg	encoding.xml
3137eb1ca1Smrg
3237eb1ca1Smrgif HAVE_XMLTO
3337eb1ca1Smrgspec_DATA = $(doc_sources:.xml=.html)
3437eb1ca1Smrg
3537eb1ca1Smrgif HAVE_FOP
3637eb1ca1Smrgspec_DATA += $(doc_sources:.xml=.ps) $(doc_sources:.xml=.pdf)
3737eb1ca1Smrgendif
3837eb1ca1Smrg
3937eb1ca1Smrgif HAVE_XMLTO_TEXT
4037eb1ca1Smrgspec_DATA += $(doc_sources:.xml=.txt)
4137eb1ca1Smrgendif
4237eb1ca1Smrg
4337eb1ca1Smrgif HAVE_STYLESHEETS
4437eb1ca1SmrgXMLTO_FLAGS = -m $(XSL_STYLESHEET)
4537eb1ca1Smrg
4637eb1ca1Smrgspec_DATA += xorg.css
4737eb1ca1Smrgxorg.css: $(STYLESHEET_SRCDIR)/xorg.css
4837eb1ca1Smrg	$(AM_V_GEN)cp -pf $(STYLESHEET_SRCDIR)/xorg.css $@
4937eb1ca1Smrgendif
5037eb1ca1Smrg
5137eb1ca1SmrgCLEANFILES = $(spec_DATA)
5237eb1ca1Smrg
5337eb1ca1SmrgSUFFIXES = .xml .ps .pdf .txt .html
5437eb1ca1Smrg
5537eb1ca1Smrg%.txt: %.xml $(dist_spec_DATA)
5637eb1ca1Smrg	$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) txt $<
5737eb1ca1Smrg
5837eb1ca1Smrg%.html: %.xml $(dist_spec_DATA)
5937eb1ca1Smrg	$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $<
6037eb1ca1Smrg
6137eb1ca1Smrg%.pdf: %.xml $(dist_spec_DATA)
6237eb1ca1Smrg	$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $<
6337eb1ca1Smrg
6437eb1ca1Smrg%.ps: %.xml $(dist_spec_DATA)
6537eb1ca1Smrg	$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop ps $<
6637eb1ca1Smrg
6737eb1ca1Smrgendif HAVE_XMLTO
6837eb1ca1Smrgendif ENABLE_SPECS
69