diff options
author | Kevin E Martin <kem@kem.org> | 2005-09-27 14:09:31 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2005-09-27 14:09:31 +0000 |
commit | ca64aab609c3585234410cd8d908f8e1efe5c788 (patch) | |
tree | 5731a01203ae9b3bf9dc42011cea6b69f4a80de7 /hw | |
parent | 1a4e30d508e62ab304722c3525748ff0e3c2899d (diff) |
Add build system for building docs and fix setuid issues.
Add build system for sgml docs.
Diffstat (limited to 'hw')
-rw-r--r-- | hw/dmx/Makefile.am | 6 | ||||
-rw-r--r-- | hw/dmx/doc/Makefile.am | 52 | ||||
-rw-r--r-- | hw/xfree86/Makefile.am | 10 | ||||
-rw-r--r-- | hw/xfree86/doc/Makefile.am | 1 | ||||
-rw-r--r-- | hw/xfree86/doc/sgml/Makefile.am | 52 |
5 files changed, 118 insertions, 3 deletions
diff --git a/hw/dmx/Makefile.am b/hw/dmx/Makefile.am index 046580567..951489b85 100644 --- a/hw/dmx/Makefile.am +++ b/hw/dmx/Makefile.am @@ -1,4 +1,4 @@ -DIST_SUBDIRS = input config glxProxy +DIST_SUBDIRS = input config glxProxy doc SUBDIRS = input config bin_PROGRAMS = Xdmx @@ -14,6 +14,10 @@ GLX_SRCS = $(PANORAMIX_SRCS) dmx_glxvisuals.c dmx_glxvisuals.h GLX_INCS = -I$(top_srcdir)/hw/xfree86/dixmods/extmod endif +if BUILDDOCS +SUBDIRS += doc +endif + Xdmx_SOURCES = dmx.c \ dmxcb.c \ dmxcb.h \ diff --git a/hw/dmx/doc/Makefile.am b/hw/dmx/doc/Makefile.am new file mode 100644 index 000000000..f921795af --- /dev/null +++ b/hw/dmx/doc/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 = dmx.sgml scaled.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) diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am index 490d2d41e..ffe24f5f7 100644 --- a/hw/xfree86/Makefile.am +++ b/hw/xfree86/Makefile.am @@ -2,14 +2,20 @@ if DRI DRI_SUBDIR = dri endif +if BUILDDOCS +DOC_SUBDIR = doc +endif + + SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support parser rac \ ramdac shadowfb vbe vgahw xaa xf1bpp xf4bpp xf8_16bpp \ - xf8_32bpp xf8_32wid loader scanpci dixmods exa $(DRI_SUBDIR) utils + xf8_32bpp xf8_32wid loader scanpci dixmods exa $(DRI_SUBDIR) utils \ + $(DOC_SUBDIR) DIST_SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support \ parser rac ramdac shadowfb vbe vgahw xaa xf1bpp xf4bpp \ xf8_16bpp xf8_32bpp xf8_32wid loader scanpci dixmods dri exa \ - utils + utils doc bin_PROGRAMS = Xorg 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) |