Makefile.am revision 9bd41f2c
19bd41f2cSmrg# 29bd41f2cSmrg# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 39bd41f2cSmrg# 49bd41f2cSmrg# Permission to use, copy, modify, distribute, and sell this software and its 59bd41f2cSmrg# documentation for any purpose is hereby granted without fee, provided that 69bd41f2cSmrg# the above copyright notice appear in all copies and that both that 79bd41f2cSmrg# copyright notice and this permission notice appear in supporting 89bd41f2cSmrg# documentation. 99bd41f2cSmrg# 109bd41f2cSmrg# The above copyright notice and this permission notice shall be included 119bd41f2cSmrg# in all copies or substantial portions of the Software. 129bd41f2cSmrg# 139bd41f2cSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 149bd41f2cSmrg# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 159bd41f2cSmrg# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 169bd41f2cSmrg# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 179bd41f2cSmrg# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 189bd41f2cSmrg# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 199bd41f2cSmrg# OTHER DEALINGS IN THE SOFTWARE. 209bd41f2cSmrg# 219bd41f2cSmrg# Except as contained in this notice, the name of the copyright holders shall 229bd41f2cSmrg# not be used in advertising or otherwise to promote the sale, use or 239bd41f2cSmrg# other dealings in this Software without prior written authorization 249bd41f2cSmrg# from the copyright holders. 259bd41f2cSmrg# 269bd41f2cSmrg 279bd41f2cSmrgdrivermandir = $(DRIVER_MAN_DIR) 289bd41f2cSmrg 299bd41f2cSmrgdriverman_PRE = @DRIVER_NAME@.man 309bd41f2cSmrg 319bd41f2cSmrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 329bd41f2cSmrg 339bd41f2cSmrgEXTRA_DIST = @DRIVER_NAME@.man 349bd41f2cSmrg 359bd41f2cSmrgCLEANFILES = $(driverman_DATA) 369bd41f2cSmrg 379bd41f2cSmrgSED = sed 389bd41f2cSmrg 399bd41f2cSmrg# Strings to replace in man pages 409bd41f2cSmrgXORGRELSTRING = @PACKAGE_STRING@ 419bd41f2cSmrg XORGMANNAME = X Version 11 429bd41f2cSmrg 439bd41f2cSmrgMAN_SUBSTS = \ 449bd41f2cSmrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 459bd41f2cSmrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 469bd41f2cSmrg -e 's|__xservername__|Xorg|g' \ 479bd41f2cSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 489bd41f2cSmrg -e 's|__projectroot__|$(prefix)|g' \ 499bd41f2cSmrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 509bd41f2cSmrg -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \ 519bd41f2cSmrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 529bd41f2cSmrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 539bd41f2cSmrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 549bd41f2cSmrg 559bd41f2cSmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 569bd41f2cSmrg 579bd41f2cSmrg.man.$(DRIVER_MAN_SUFFIX): 589bd41f2cSmrg sed $(MAN_SUBSTS) < $< > $@ 59