171d7fec4Smrg# $Id: Makefile.am,v 1.1.1.1 2008/08/02 05:13:58 mrg Exp $
271d7fec4Smrg#
371d7fec4Smrg# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
471d7fec4Smrg# 
571d7fec4Smrg# Permission to use, copy, modify, distribute, and sell this software and its
671d7fec4Smrg# documentation for any purpose is hereby granted without fee, provided that
771d7fec4Smrg# the above copyright notice appear in all copies and that both that
871d7fec4Smrg# copyright notice and this permission notice appear in supporting
971d7fec4Smrg# documentation.
1071d7fec4Smrg# 
1171d7fec4Smrg# The above copyright notice and this permission notice shall be included
1271d7fec4Smrg# in all copies or substantial portions of the Software.
1371d7fec4Smrg# 
1471d7fec4Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1571d7fec4Smrg# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1671d7fec4Smrg# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1771d7fec4Smrg# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
1871d7fec4Smrg# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1971d7fec4Smrg# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2071d7fec4Smrg# OTHER DEALINGS IN THE SOFTWARE.
2171d7fec4Smrg# 
2271d7fec4Smrg# Except as contained in this notice, the name of the copyright holders shall
2371d7fec4Smrg# not be used in advertising or otherwise to promote the sale, use or
2471d7fec4Smrg# other dealings in this Software without prior written authorization
2571d7fec4Smrg# from the copyright holders.
2671d7fec4Smrg# 
2771d7fec4Smrg
2871d7fec4Smrgdrivermandir = $(DRIVER_MAN_DIR)
2971d7fec4Smrg
3071d7fec4Smrgdriverman_PRE = @DRIVER_NAME@.man
3171d7fec4Smrg
3271d7fec4Smrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
3371d7fec4Smrg
3471d7fec4SmrgEXTRA_DIST = @DRIVER_NAME@.man
3571d7fec4Smrg
3671d7fec4SmrgCLEANFILES = $(driverman_DATA)
3771d7fec4Smrg
3871d7fec4SmrgSED = sed
3971d7fec4Smrg
4071d7fec4Smrg# Strings to replace in man pages
4171d7fec4SmrgXORGRELSTRING = @PACKAGE_STRING@
4271d7fec4Smrg  XORGMANNAME = X Version 11
4371d7fec4Smrg
4471d7fec4SmrgMAN_SUBSTS = \
4571d7fec4Smrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
4671d7fec4Smrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
4771d7fec4Smrg	-e 's|__xservername__|Xorg|g' \
4871d7fec4Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4971d7fec4Smrg	-e 's|__projectroot__|$(prefix)|g' \
5071d7fec4Smrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
5171d7fec4Smrg	-e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
5271d7fec4Smrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
5371d7fec4Smrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
5471d7fec4Smrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
5571d7fec4Smrg
5671d7fec4SmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
5771d7fec4Smrg
5871d7fec4Smrg.man.$(DRIVER_MAN_SUFFIX):
5971d7fec4Smrg	sed $(MAN_SUBSTS) < $< > $@
60