Makefile.am revision 9418810d
19bd41f2cSmrg# 29bd41f2cSmrg# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 39418810dSmrg# 49418810dSmrg# Permission is hereby granted, free of charge, to any person obtaining a 59418810dSmrg# copy of this software and associated documentation files (the "Software"), 69418810dSmrg# to deal in the Software without restriction, including without limitation 79418810dSmrg# the rights to use, copy, modify, merge, publish, distribute, sublicense, 89418810dSmrg# and/or sell copies of the Software, and to permit persons to whom the 99418810dSmrg# Software is furnished to do so, subject to the following conditions: 109418810dSmrg# 119418810dSmrg# The above copyright notice and this permission notice (including the next 129418810dSmrg# paragraph) shall be included in all copies or substantial portions of the 139418810dSmrg# Software. 149418810dSmrg# 159418810dSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 169418810dSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 179418810dSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 189418810dSmrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 199418810dSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 209418810dSmrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 219418810dSmrg# DEALINGS IN THE SOFTWARE. 229bd41f2cSmrg# 23d075918cSmrg 249bd41f2cSmrgdrivermandir = $(DRIVER_MAN_DIR) 259bd41f2cSmrg 269bd41f2cSmrgdriverman_PRE = @DRIVER_NAME@.man 279bd41f2cSmrg 289bd41f2cSmrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 299bd41f2cSmrg 309418810dSmrgappmandir = $(APP_MAN_DIR) 319418810dSmrgappman_PRE = @DRIVER_NAME@_detect.man 329418810dSmrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 339bd41f2cSmrg 349418810dSmrgEXTRA_DIST = @DRIVER_NAME@.man $(appman_PRE) 359bd41f2cSmrg 369418810dSmrgCLEANFILES = $(driverman_DATA) $(appman_DATA) 379bd41f2cSmrg 389bd41f2cSmrg# Strings to replace in man pages 399bd41f2cSmrgXORGRELSTRING = @PACKAGE_STRING@ 409bd41f2cSmrg XORGMANNAME = X Version 11 419bd41f2cSmrg 429bd41f2cSmrgMAN_SUBSTS = \ 439bd41f2cSmrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 449bd41f2cSmrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 459bd41f2cSmrg -e 's|__xservername__|Xorg|g' \ 469bd41f2cSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 479bd41f2cSmrg -e 's|__projectroot__|$(prefix)|g' \ 489bd41f2cSmrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 499bd41f2cSmrg -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \ 509bd41f2cSmrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 519bd41f2cSmrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 529bd41f2cSmrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 539bd41f2cSmrg 549bd41f2cSmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 559bd41f2cSmrg 569bd41f2cSmrg.man.$(DRIVER_MAN_SUFFIX): 579418810dSmrg $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 589418810dSmrg.man.$(APP_MAN_SUFFIX): 599418810dSmrg $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 60