Makefile.am revision 0b661123
1bdcaa8d0Smrg# 2bdcaa8d0Smrg# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 30b661123Smrg# 40b661123Smrg# Permission is hereby granted, free of charge, to any person obtaining a 50b661123Smrg# copy of this software and associated documentation files (the "Software"), 60b661123Smrg# to deal in the Software without restriction, including without limitation 70b661123Smrg# the rights to use, copy, modify, merge, publish, distribute, sublicense, 80b661123Smrg# and/or sell copies of the Software, and to permit persons to whom the 90b661123Smrg# Software is furnished to do so, subject to the following conditions: 100b661123Smrg# 110b661123Smrg# The above copyright notice and this permission notice (including the next 120b661123Smrg# paragraph) shall be included in all copies or substantial portions of the 130b661123Smrg# Software. 140b661123Smrg# 150b661123Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 160b661123Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 170b661123Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 180b661123Smrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 190b661123Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 200b661123Smrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 210b661123Smrg# DEALINGS IN THE SOFTWARE. 22bdcaa8d0Smrg# 23bdcaa8d0Smrg 24bdcaa8d0Smrgdrivermandir = $(DRIVER_MAN_DIR) 25bdcaa8d0Smrg 26bdcaa8d0Smrgdriverman_PRE = @DRIVER_NAME@.man 27bdcaa8d0Smrg 28bdcaa8d0Smrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 29bdcaa8d0Smrg 30bdcaa8d0SmrgEXTRA_DIST = @DRIVER_NAME@.man 31bdcaa8d0Smrg 32bdcaa8d0SmrgCLEANFILES = $(driverman_DATA) 33bdcaa8d0Smrg 34bdcaa8d0SmrgSED = sed 35bdcaa8d0Smrg 36bdcaa8d0Smrg# Strings to replace in man pages 37bdcaa8d0SmrgXORGRELSTRING = @PACKAGE_STRING@ 38bdcaa8d0Smrg XORGMANNAME = X Version 11 39bdcaa8d0Smrg 40bdcaa8d0SmrgMAN_SUBSTS = \ 41bdcaa8d0Smrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 42bdcaa8d0Smrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 43bdcaa8d0Smrg -e 's|__xservername__|Xorg|g' \ 44bdcaa8d0Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 45bdcaa8d0Smrg -e 's|__projectroot__|$(prefix)|g' \ 46bdcaa8d0Smrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 47bdcaa8d0Smrg -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \ 48bdcaa8d0Smrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 49bdcaa8d0Smrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 50bdcaa8d0Smrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 51bdcaa8d0Smrg 52bdcaa8d0SmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 53bdcaa8d0Smrg 54bdcaa8d0Smrg.man.$(DRIVER_MAN_SUFFIX): 55bdcaa8d0Smrg sed $(MAN_SUBSTS) < $< > $@ 56