OSDN Git Service

config: provide a makefile for scanpci man pages
authorGaetan Nadon <memsize@videotron.ca>
Sun, 22 Aug 2010 12:10:23 +0000 (08:10 -0400)
committerGaetan Nadon <memsize@videotron.ca>
Sun, 3 Oct 2010 18:02:44 +0000 (14:02 -0400)
Reviewed-by: RĂ©mi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Makefile.am
configure.ac
man/Makefile.am [new file with mode: 0644]
man/scanpci.man [moved from src/scanpci.man with 98% similarity]

index 31d20a0..ea30cd2 100644 (file)
 ACLOCAL_AMFLAGS = -I m4
 
 # Order: scanpci depends on libpciaccess built in src
-SUBDIRS = src scanpci
+SUBDIRS = man src scanpci
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = pciaccess.pc
 
 MAINTAINERCLEANFILES = ChangeLog INSTALL
-EXTRA_DIST = src/scanpci.man
 
 .PHONY: ChangeLog INSTALL
 
index 6980675..1c2a3ca 100644 (file)
@@ -123,6 +123,7 @@ AC_SUBST(PCIACCESS_LIBS)
                  
 
 AC_OUTPUT([Makefile
+          man/Makefile
           src/Makefile
           scanpci/Makefile
            pciaccess.pc])
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644 (file)
index 0000000..45edd45
--- /dev/null
@@ -0,0 +1,34 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+
+appman_PRE = scanpci.man
+noinst_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
+
+EXTRA_DIST = $(appman_PRE)
+CLEANFILES = $(noinst_DATA)
+
+# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
+SUFFIXES = .$(APP_MAN_SUFFIX) .man
+
+.man.$(APP_MAN_SUFFIX):
+       $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
similarity index 98%
rename from src/scanpci.man
rename to man/scanpci.man
index aec7b2e..a748edf 100644 (file)
@@ -1,27 +1,27 @@
 .\" Copyright (C) 2000 The XFree86 Project, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" Permission is hereby granted, free of charge, to any person obtaining a copy
 .\" of this software and associated documentation files (the "Software"), to
 .\" deal in the Software without restriction, including without limitation the
 .\" rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 .\" sell copies of the Software, and to permit persons to whom the Software is
 .\" furnished to do so, subject to the following conditions:
-.\" 
+.\"
 .\" The above copyright notice and this permission notice shall be included in
 .\" all copies or substantial portions of the Software.
-.\" 
+.\"
 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 .\" XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 .\" IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 .\" CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-.\" 
+.\"
 .\" Except as contained in this notice, the name of the XFree86 Project shall
 .\" not be used in advertising or otherwise to promote the sale, use or other
 .\" dealings in this Software without prior written authorization from the
 .\" XFree86 Project.
-.\" 
+.\"
 .TH SCANPCI 1 __xorgversion__
 .SH NAME
 scanpci - scan/probe PCI buses