Makefile.am revision e4f6584c
109885543Smrg# 209885543Smrg# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3e4f6584cSmrg# 4e4f6584cSmrg# Permission is hereby granted, free of charge, to any person obtaining a 5e4f6584cSmrg# copy of this software and associated documentation files (the "Software"), 6e4f6584cSmrg# to deal in the Software without restriction, including without limitation 7e4f6584cSmrg# the rights to use, copy, modify, merge, publish, distribute, sublicense, 8e4f6584cSmrg# and/or sell copies of the Software, and to permit persons to whom the 9e4f6584cSmrg# Software is furnished to do so, subject to the following conditions: 10e4f6584cSmrg# 11e4f6584cSmrg# The above copyright notice and this permission notice (including the next 12e4f6584cSmrg# paragraph) shall be included in all copies or substantial portions of the 13e4f6584cSmrg# Software. 14e4f6584cSmrg# 15e4f6584cSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16e4f6584cSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17e4f6584cSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18e4f6584cSmrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19e4f6584cSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20e4f6584cSmrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21e4f6584cSmrg# DEALINGS IN THE SOFTWARE. 2209885543Smrg# 2309885543Smrg 2409885543Smrgdrivermandir = $(DRIVER_MAN_DIR) 2509885543Smrg 2609885543Smrgdriverman_PRE = @DRIVER_NAME@.man 2709885543Smrg 2809885543Smrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 2909885543Smrg 3009885543SmrgEXTRA_DIST = @DRIVER_NAME@.man 3109885543Smrg 3209885543SmrgCLEANFILES = $(driverman_DATA) 3309885543Smrg 3409885543Smrg# Strings to replace in man pages 3509885543SmrgXORGRELSTRING = @PACKAGE_STRING@ 3609885543Smrg XORGMANNAME = X Version 11 3709885543Smrg 3809885543SmrgMAN_SUBSTS = \ 3909885543Smrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 4009885543Smrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 4109885543Smrg -e 's|__xservername__|Xorg|g' \ 4209885543Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 4309885543Smrg -e 's|__projectroot__|$(prefix)|g' \ 4409885543Smrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 4509885543Smrg -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \ 4609885543Smrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 4709885543Smrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 4809885543Smrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 4909885543Smrg 5009885543SmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 5109885543Smrg 5209885543Smrg.man.$(DRIVER_MAN_SUFFIX): 53e4f6584cSmrg $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 54