Makefile.am revision 301ea0f4
1301ea0f4Smrg# $Id: Makefile.am,v 1.1.1.1 2008/08/02 05:12:11 mrg Exp $
2301ea0f4Smrg#
3301ea0f4Smrg# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
4301ea0f4Smrg# 
5301ea0f4Smrg# Permission to use, copy, modify, distribute, and sell this software and its
6301ea0f4Smrg# documentation for any purpose is hereby granted without fee, provided that
7301ea0f4Smrg# the above copyright notice appear in all copies and that both that
8301ea0f4Smrg# copyright notice and this permission notice appear in supporting
9301ea0f4Smrg# documentation.
10301ea0f4Smrg# 
11301ea0f4Smrg# The above copyright notice and this permission notice shall be included
12301ea0f4Smrg# in all copies or substantial portions of the Software.
13301ea0f4Smrg# 
14301ea0f4Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15301ea0f4Smrg# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16301ea0f4Smrg# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17301ea0f4Smrg# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
18301ea0f4Smrg# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19301ea0f4Smrg# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20301ea0f4Smrg# OTHER DEALINGS IN THE SOFTWARE.
21301ea0f4Smrg# 
22301ea0f4Smrg# Except as contained in this notice, the name of the copyright holders shall
23301ea0f4Smrg# not be used in advertising or otherwise to promote the sale, use or
24301ea0f4Smrg# other dealings in this Software without prior written authorization
25301ea0f4Smrg# from the copyright holders.
26301ea0f4Smrg# 
27301ea0f4Smrg
28301ea0f4Smrgdrivermandir = $(DRIVER_MAN_DIR)
29301ea0f4Smrg
30301ea0f4Smrgdriverman_PRE = @DRIVER_NAME@.man
31301ea0f4Smrg
32301ea0f4Smrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
33301ea0f4Smrg
34301ea0f4SmrgEXTRA_DIST = @DRIVER_NAME@.man
35301ea0f4Smrg
36301ea0f4SmrgCLEANFILES = $(driverman_DATA)
37301ea0f4Smrg
38301ea0f4SmrgSED = sed
39301ea0f4Smrg
40301ea0f4Smrg# Strings to replace in man pages
41301ea0f4SmrgXORGRELSTRING = @PACKAGE_STRING@
42301ea0f4Smrg  XORGMANNAME = X Version 11
43301ea0f4Smrg
44301ea0f4SmrgMAN_SUBSTS = \
45301ea0f4Smrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
46301ea0f4Smrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
47301ea0f4Smrg	-e 's|__xservername__|Xorg|g' \
48301ea0f4Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
49301ea0f4Smrg	-e 's|__projectroot__|$(prefix)|g' \
50301ea0f4Smrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
51301ea0f4Smrg	-e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
52301ea0f4Smrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
53301ea0f4Smrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
54301ea0f4Smrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
55301ea0f4Smrg
56301ea0f4SmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
57301ea0f4Smrg
58301ea0f4Smrg.man.$(DRIVER_MAN_SUFFIX):
59301ea0f4Smrg	sed $(MAN_SUBSTS) < $< > $@
60