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