153e90a53Smrg# $Id: Makefile.am,v 1.1.1.1 2008/08/02 05:12:22 mrg Exp $ 253e90a53Smrg# 353e90a53Smrg# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 453e90a53Smrg# 553e90a53Smrg# Permission to use, copy, modify, distribute, and sell this software and its 653e90a53Smrg# documentation for any purpose is hereby granted without fee, provided that 753e90a53Smrg# the above copyright notice appear in all copies and that both that 853e90a53Smrg# copyright notice and this permission notice appear in supporting 953e90a53Smrg# documentation. 1053e90a53Smrg# 1153e90a53Smrg# The above copyright notice and this permission notice shall be included 1253e90a53Smrg# in all copies or substantial portions of the Software. 1353e90a53Smrg# 1453e90a53Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1553e90a53Smrg# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1653e90a53Smrg# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 1753e90a53Smrg# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 1853e90a53Smrg# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1953e90a53Smrg# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2053e90a53Smrg# OTHER DEALINGS IN THE SOFTWARE. 2153e90a53Smrg# 2253e90a53Smrg# Except as contained in this notice, the name of the copyright holders shall 2353e90a53Smrg# not be used in advertising or otherwise to promote the sale, use or 2453e90a53Smrg# other dealings in this Software without prior written authorization 2553e90a53Smrg# from the copyright holders. 2653e90a53Smrg# 2753e90a53Smrg 2853e90a53Smrgdrivermandir = $(DRIVER_MAN_DIR) 2953e90a53Smrg 3053e90a53Smrgdriverman_PRE = @DRIVER_NAME@.man 3153e90a53Smrg 3253e90a53Smrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 3353e90a53Smrg 3453e90a53SmrgEXTRA_DIST = @DRIVER_NAME@.man 3553e90a53Smrg 3653e90a53SmrgCLEANFILES = $(driverman_DATA) 3753e90a53Smrg 3853e90a53SmrgSED = sed 3953e90a53Smrg 4053e90a53Smrg# Strings to replace in man pages 4153e90a53SmrgXORGRELSTRING = @PACKAGE_STRING@ 4253e90a53Smrg XORGMANNAME = X Version 11 4353e90a53Smrg 4453e90a53SmrgMAN_SUBSTS = \ 4553e90a53Smrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 4653e90a53Smrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 4753e90a53Smrg -e 's|__xservername__|Xorg|g' \ 4853e90a53Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 4953e90a53Smrg -e 's|__projectroot__|$(prefix)|g' \ 5053e90a53Smrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 5153e90a53Smrg -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \ 5253e90a53Smrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 5353e90a53Smrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 5453e90a53Smrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 5553e90a53Smrg 5653e90a53SmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 5753e90a53Smrg 5853e90a53Smrg.man.$(DRIVER_MAN_SUFFIX): 5953e90a53Smrg sed $(MAN_SUBSTS) < $< > $@ 60