Makefile.am revision f7ec340b
1f7ec340bSmacallan# $Id: Makefile.am,v 1.1.1.1 2010/02/11 00:16:41 macallan Exp $
2f7ec340bSmacallan#
3f7ec340bSmacallan# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
4f7ec340bSmacallan# 
5f7ec340bSmacallan# Permission to use, copy, modify, distribute, and sell this software and its
6f7ec340bSmacallan# documentation for any purpose is hereby granted without fee, provided that
7f7ec340bSmacallan# the above copyright notice appear in all copies and that both that
8f7ec340bSmacallan# copyright notice and this permission notice appear in supporting
9f7ec340bSmacallan# documentation.
10f7ec340bSmacallan# 
11f7ec340bSmacallan# The above copyright notice and this permission notice shall be included
12f7ec340bSmacallan# in all copies or substantial portions of the Software.
13f7ec340bSmacallan# 
14f7ec340bSmacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15f7ec340bSmacallan# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16f7ec340bSmacallan# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17f7ec340bSmacallan# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
18f7ec340bSmacallan# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19f7ec340bSmacallan# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20f7ec340bSmacallan# OTHER DEALINGS IN THE SOFTWARE.
21f7ec340bSmacallan# 
22f7ec340bSmacallan# Except as contained in this notice, the name of the copyright holders shall
23f7ec340bSmacallan# not be used in advertising or otherwise to promote the sale, use or
24f7ec340bSmacallan# other dealings in this Software without prior written authorization
25f7ec340bSmacallan# from the copyright holders.
26f7ec340bSmacallan# 
27f7ec340bSmacallan
28f7ec340bSmacallandrivermandir = $(DRIVER_MAN_DIR)
29f7ec340bSmacallan
30f7ec340bSmacallandriverman_PRE = @DRIVER_NAME@.man
31f7ec340bSmacallan
32f7ec340bSmacallandriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
33f7ec340bSmacallan
34f7ec340bSmacallanEXTRA_DIST = @DRIVER_NAME@.man
35f7ec340bSmacallan
36f7ec340bSmacallanCLEANFILES = $(driverman_DATA)
37f7ec340bSmacallan
38f7ec340bSmacallanSED = sed
39f7ec340bSmacallan
40f7ec340bSmacallan# Strings to replace in man pages
41f7ec340bSmacallanXORGRELSTRING = @PACKAGE_STRING@
42f7ec340bSmacallan  XORGMANNAME = X Version 11
43f7ec340bSmacallan
44f7ec340bSmacallanMAN_SUBSTS = \
45f7ec340bSmacallan	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
46f7ec340bSmacallan	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
47f7ec340bSmacallan	-e 's|__xservername__|Xorg|g' \
48f7ec340bSmacallan	-e 's|__xconfigfile__|xorg.conf|g' \
49f7ec340bSmacallan	-e 's|__projectroot__|$(prefix)|g' \
50f7ec340bSmacallan	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
51f7ec340bSmacallan	-e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
52f7ec340bSmacallan	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
53f7ec340bSmacallan	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
54f7ec340bSmacallan	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
55f7ec340bSmacallan
56f7ec340bSmacallanSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
57f7ec340bSmacallan
58f7ec340bSmacallan.man.$(DRIVER_MAN_SUFFIX):
59f7ec340bSmacallan	sed $(MAN_SUBSTS) < $< > $@
60