Makefile.am revision 76888252
176888252Smrg# $Id: Makefile.am,v 1.1.1.1 2008/08/02 05:11:15 mrg Exp $
276888252Smrg#
376888252Smrg# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
476888252Smrg# 
576888252Smrg# Permission to use, copy, modify, distribute, and sell this software and its
676888252Smrg# documentation for any purpose is hereby granted without fee, provided that
776888252Smrg# the above copyright notice appear in all copies and that both that
876888252Smrg# copyright notice and this permission notice appear in supporting
976888252Smrg# documentation.
1076888252Smrg# 
1176888252Smrg# The above copyright notice and this permission notice shall be included
1276888252Smrg# in all copies or substantial portions of the Software.
1376888252Smrg# 
1476888252Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1576888252Smrg# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1676888252Smrg# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1776888252Smrg# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
1876888252Smrg# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1976888252Smrg# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2076888252Smrg# OTHER DEALINGS IN THE SOFTWARE.
2176888252Smrg# 
2276888252Smrg# Except as contained in this notice, the name of the copyright holders shall
2376888252Smrg# not be used in advertising or otherwise to promote the sale, use or
2476888252Smrg# other dealings in this Software without prior written authorization
2576888252Smrg# from the copyright holders.
2676888252Smrg# 
2776888252Smrg
2876888252Smrgdrivermandir = $(DRIVER_MAN_DIR)
2976888252Smrg
3076888252Smrgdriverman_PRE = @DRIVER_NAME@.man
3176888252Smrg
3276888252Smrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
3376888252Smrg
3476888252SmrgEXTRA_DIST = @DRIVER_NAME@.man
3576888252Smrg
3676888252SmrgCLEANFILES = $(driverman_DATA)
3776888252Smrg
3876888252SmrgSED = sed
3976888252Smrg
4076888252Smrg# Strings to replace in man pages
4176888252SmrgXORGRELSTRING = @PACKAGE_STRING@
4276888252Smrg  XORGMANNAME = X Version 11
4376888252Smrg
4476888252SmrgMAN_SUBSTS = \
4576888252Smrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
4676888252Smrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
4776888252Smrg	-e 's|__xservername__|Xorg|g' \
4876888252Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
4976888252Smrg	-e 's|__projectroot__|$(prefix)|g' \
5076888252Smrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
5176888252Smrg	-e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
5276888252Smrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
5376888252Smrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
5476888252Smrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
5576888252Smrg
5676888252SmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
5776888252Smrg
5876888252Smrg.man.$(DRIVER_MAN_SUFFIX):
5976888252Smrg	sed $(MAN_SUBSTS) < $< > $@
60