Makefile.am revision 4a041c5b
14a041c5bSmacallan# 24a041c5bSmacallan# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 34a041c5bSmacallan# 44a041c5bSmacallan# Permission to use, copy, modify, distribute, and sell this software and its 54a041c5bSmacallan# documentation for any purpose is hereby granted without fee, provided that 64a041c5bSmacallan# the above copyright notice appear in all copies and that both that 74a041c5bSmacallan# copyright notice and this permission notice appear in supporting 84a041c5bSmacallan# documentation. 94a041c5bSmacallan# 104a041c5bSmacallan# The above copyright notice and this permission notice shall be included 114a041c5bSmacallan# in all copies or substantial portions of the Software. 124a041c5bSmacallan# 134a041c5bSmacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 144a041c5bSmacallan# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 154a041c5bSmacallan# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 164a041c5bSmacallan# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 174a041c5bSmacallan# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 184a041c5bSmacallan# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 194a041c5bSmacallan# OTHER DEALINGS IN THE SOFTWARE. 204a041c5bSmacallan# 214a041c5bSmacallan# Except as contained in this notice, the name of the copyright holders shall 224a041c5bSmacallan# not be used in advertising or otherwise to promote the sale, use or 234a041c5bSmacallan# other dealings in this Software without prior written authorization 244a041c5bSmacallan# from the copyright holders. 254a041c5bSmacallan# 264a041c5bSmacallan 274a041c5bSmacallandrivermandir = $(DRIVER_MAN_DIR) 284a041c5bSmacallan 294a041c5bSmacallandriverman_PRE = @DRIVER_NAME@.man 304a041c5bSmacallan 314a041c5bSmacallandriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 324a041c5bSmacallan 334a041c5bSmacallanEXTRA_DIST = @DRIVER_NAME@.man 344a041c5bSmacallan 354a041c5bSmacallanCLEANFILES = $(driverman_DATA) 364a041c5bSmacallan 374a041c5bSmacallanSED = sed 384a041c5bSmacallan 394a041c5bSmacallan# Strings to replace in man pages 404a041c5bSmacallanXORGRELSTRING = @PACKAGE_STRING@ 414a041c5bSmacallan XORGMANNAME = X Version 11 424a041c5bSmacallan 434a041c5bSmacallanMAN_SUBSTS = \ 444a041c5bSmacallan -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 454a041c5bSmacallan -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 464a041c5bSmacallan -e 's|__xservername__|Xorg|g' \ 474a041c5bSmacallan -e 's|__xconfigfile__|xorg.conf|g' \ 484a041c5bSmacallan -e 's|__projectroot__|$(prefix)|g' \ 494a041c5bSmacallan -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 504a041c5bSmacallan -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \ 514a041c5bSmacallan -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 524a041c5bSmacallan -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 534a041c5bSmacallan -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 544a041c5bSmacallan 554a041c5bSmacallanSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 564a041c5bSmacallan 574a041c5bSmacallan.man.$(DRIVER_MAN_SUFFIX): 584a041c5bSmacallan sed $(MAN_SUBSTS) < $< > $@ 59