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