Makefile.am revision 994689c1
1# 2# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 3# 4# Permission is hereby granted, free of charge, to any person obtaining a 5# copy of this software and associated documentation files (the "Software"), 6# to deal in the Software without restriction, including without limitation 7# the rights to use, copy, modify, merge, publish, distribute, sublicense, 8# and/or sell copies of the Software, and to permit persons to whom the 9# Software is furnished to do so, subject to the following conditions: 10# 11# The above copyright notice and this permission notice (including the next 12# paragraph) shall be included in all copies or substantial portions of the 13# Software. 14# 15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21# DEALINGS IN THE SOFTWARE. 22# 23 24if ENABLE_SPECS 25doc_sources = libXaw.xml 26dist_doc_DATA = $(doc_sources) \ 27 AsciiSink.xml \ 28 AsciiSource.xml \ 29 AsciiText.xml \ 30 Box.xml \ 31 CH1.xml \ 32 CH2.xml \ 33 CH3.xml \ 34 CH4.xml \ 35 CH5.xml \ 36 CH6.xml \ 37 CH7.xml \ 38 Command.xml \ 39 Dialog.xml \ 40 Form.xml \ 41 Grip.xml \ 42 Label.xml \ 43 List.xml \ 44 MenuButton.xml \ 45 Paned.xml \ 46 Panner.xml \ 47 Porthole.xml \ 48 Repeater.xml \ 49 Scrollbar.xml \ 50 SimpleMenu.xml \ 51 Simple.xml \ 52 SmeBSB.xml \ 53 SmeLine.xml \ 54 Sme.xml \ 55 StripChart.xml \ 56 Template_private_header_file.xml \ 57 Template_public_header_file.xml \ 58 Template_widget_source_file.xml \ 59 Template.xml \ 60 TextActions_default_translation_bindings.xml \ 61 TextActions_text_widget_actions.xml \ 62 TextActions.xml \ 63 TextCustom.xml \ 64 TextFuncs.xml \ 65 TextSink.xml \ 66 TextSource.xml \ 67 Text.xml \ 68 Toggle.xml \ 69 TPage_Credits.xml \ 70 Tree.xml \ 71 Viewport.xml 72 73if HAVE_XMLTO 74doc_DATA = $(doc_sources:.xml=.html) 75 76if HAVE_FOP 77doc_DATA += $(doc_sources:.xml=.ps) $(doc_sources:.xml=.pdf) 78endif 79 80if HAVE_XMLTO_TEXT 81doc_DATA += $(doc_sources:.xml=.txt) 82endif 83 84if HAVE_STYLESHEETS 85XMLTO_FLAGS = -m $(XSL_STYLESHEET) 86 87doc_DATA += xorg.css 88xorg.css: $(STYLESHEET_SRCDIR)/xorg.css 89 $(AM_V_GEN)cp -pf $(STYLESHEET_SRCDIR)/xorg.css $@ 90endif 91 92CLEANFILES = $(doc_DATA) 93 94SUFFIXES = .xml .ps .pdf .txt .html 95 96%.txt: %.xml $(dist_doc_DATA) 97 $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) txt $< 98 99%.html: %.xml $(dist_doc_DATA) 100 $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $< 101 102%.pdf: %.xml $(dist_doc_DATA) 103 $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $< 104 105%.ps: %.xml $(dist_doc_DATA) 106 $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop ps $< 107 108endif HAVE_XMLTO 109endif ENABLE_SPECS 110