summaryrefslogtreecommitdiff
path: root/hw/xfree86/doc
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-09-27 14:09:31 +0000
committerKevin E Martin <kem@kem.org>2005-09-27 14:09:31 +0000
commitca64aab609c3585234410cd8d908f8e1efe5c788 (patch)
tree5731a01203ae9b3bf9dc42011cea6b69f4a80de7 /hw/xfree86/doc
parent1a4e30d508e62ab304722c3525748ff0e3c2899d (diff)
Add build system for building docs and fix setuid issues.
Add build system for sgml docs.
Diffstat (limited to 'hw/xfree86/doc')
-rw-r--r--hw/xfree86/doc/Makefile.am1
-rw-r--r--hw/xfree86/doc/sgml/Makefile.am52
2 files changed, 53 insertions, 0 deletions
diff --git a/hw/xfree86/doc/Makefile.am b/hw/xfree86/doc/Makefile.am
new file mode 100644
index 000000000..a474b3994
--- /dev/null
+++ b/hw/xfree86/doc/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = sgml
diff --git a/hw/xfree86/doc/sgml/Makefile.am b/hw/xfree86/doc/sgml/Makefile.am
new file mode 100644
index 000000000..b9817d959
--- /dev/null
+++ b/hw/xfree86/doc/sgml/Makefile.am
@@ -0,0 +1,52 @@
+# Copyright 2005 Red Hat, Inc.
+#
+# Permission to use, copy, modify, distribute, and sell this software
+# and its documentation for any purpose is hereby granted without
+# fee, provided that the above copyright notice appear in all copies
+# and that both that copyright notice and this permission notice
+# appear in supporting documentation, and that the name of Red Hat
+# not be used in advertising or publicity pertaining to distribution
+# of the software without specific, written prior permission. Red
+# Hat makes no representations about the suitability of this software
+# for any purpose. It is provided "as is" without express or implied
+# warranty.
+#
+# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
+# NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+SGML_FILES = DESIGN.sgml
+
+TXT_FILES = $(SGML_FILES:%.sgml=%.txt)
+PS_FILES = $(SGML_FILES:%.sgml=%.ps)
+PDF_FILES = $(SGML_FILES:%.sgml=%.pdf)
+HTML_FILES = $(SGML_FILES:%.sgml=%.html)
+
+SUFFIXES = .sgml .txt .html .ps .pdf
+
+if BUILDSGMLDOCS
+.sgml.txt:
+ @rm -f $@
+ GROFF_NO_SGR= $(LINUXDOC) -B txt $^
+
+.sgml.ps:
+ @rm -f $@
+ $(LINUXDOC) -B latex --papersize=letter --output=ps $^
+
+.sgml.pdf:
+ @rm -f $@
+ $(LINUXDOC) -B latex --papersize=letter --output=pdf $^
+
+.sgml.html:
+ @rm -f $@
+ $(LINUXDOC) -B html --split=0 $^
+
+noinst_DATA = $(TXT_FILES) $(PS_FILES) $(PDF_FILES) $(HTML_FILES)
+CLEANFILES = $(PS_FILES) $(PDF_FILES) $(HTML_FILES)
+endif
+
+EXTRA_DIST = $(SGML_FILES) $(TXT_FILES)