Makefile.am revision f5990ea7
1d983712dSmrg# 2d983712dSmrg# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3f5990ea7Smrg# 4f5990ea7Smrg# Permission is hereby granted, free of charge, to any person obtaining a 5f5990ea7Smrg# copy of this software and associated documentation files (the "Software"), 6f5990ea7Smrg# to deal in the Software without restriction, including without limitation 7f5990ea7Smrg# the rights to use, copy, modify, merge, publish, distribute, sublicense, 8f5990ea7Smrg# and/or sell copies of the Software, and to permit persons to whom the 9f5990ea7Smrg# Software is furnished to do so, subject to the following conditions: 10f5990ea7Smrg# 11f5990ea7Smrg# The above copyright notice and this permission notice (including the next 12f5990ea7Smrg# paragraph) shall be included in all copies or substantial portions of the 13f5990ea7Smrg# Software. 14f5990ea7Smrg# 15f5990ea7Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16f5990ea7Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17f5990ea7Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18f5990ea7Smrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19f5990ea7Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20f5990ea7Smrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21f5990ea7Smrg# DEALINGS IN THE SOFTWARE. 22d983712dSmrg# 23d983712dSmrg 24d983712dSmrgdrivermandir = $(DRIVER_MAN_DIR) 25d983712dSmrg 26d983712dSmrgdriverman_PRE = @DRIVER_NAME@.man 27d983712dSmrg 28d983712dSmrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 29d983712dSmrg 30d983712dSmrgEXTRA_DIST = @DRIVER_NAME@.man 31d983712dSmrg 32d983712dSmrgCLEANFILES = $(driverman_DATA) 33d983712dSmrg 34d983712dSmrgSED = sed 35d983712dSmrg 36d983712dSmrg# Strings to replace in man pages 37d983712dSmrgXORGRELSTRING = @PACKAGE_STRING@ 38d983712dSmrg XORGMANNAME = X Version 11 39d983712dSmrg 40d983712dSmrgMAN_SUBSTS = \ 41d983712dSmrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 42d983712dSmrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 43d983712dSmrg -e 's|__xservername__|Xorg|g' \ 44d983712dSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 45d983712dSmrg -e 's|__projectroot__|$(prefix)|g' \ 46d983712dSmrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 47d983712dSmrg -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \ 48d983712dSmrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 49d983712dSmrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 50d983712dSmrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 51d983712dSmrg 52d983712dSmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 53d983712dSmrg 54d983712dSmrg.man.$(DRIVER_MAN_SUFFIX): 55d983712dSmrg sed $(MAN_SUBSTS) < $< > $@ 56