Makefile.am revision e4da13ee
1e4da13eeSmacallan#
2e4da13eeSmacallan# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3e4da13eeSmacallan# 
4e4da13eeSmacallan# Permission to use, copy, modify, distribute, and sell this software and its
5e4da13eeSmacallan# documentation for any purpose is hereby granted without fee, provided that
6e4da13eeSmacallan# the above copyright notice appear in all copies and that both that
7e4da13eeSmacallan# copyright notice and this permission notice appear in supporting
8e4da13eeSmacallan# documentation.
9e4da13eeSmacallan# 
10e4da13eeSmacallan# The above copyright notice and this permission notice shall be included
11e4da13eeSmacallan# in all copies or substantial portions of the Software.
12e4da13eeSmacallan# 
13e4da13eeSmacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14e4da13eeSmacallan# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15e4da13eeSmacallan# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16e4da13eeSmacallan# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
17e4da13eeSmacallan# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18e4da13eeSmacallan# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19e4da13eeSmacallan# OTHER DEALINGS IN THE SOFTWARE.
20e4da13eeSmacallan# 
21e4da13eeSmacallan# Except as contained in this notice, the name of the copyright holders shall
22e4da13eeSmacallan# not be used in advertising or otherwise to promote the sale, use or
23e4da13eeSmacallan# other dealings in this Software without prior written authorization
24e4da13eeSmacallan# from the copyright holders.
25e4da13eeSmacallan# 
26e4da13eeSmacallan
27e4da13eeSmacallandrivermandir = $(DRIVER_MAN_DIR)
28e4da13eeSmacallan
29e4da13eeSmacallandriverman_PRE = @DRIVER_NAME@.man
30e4da13eeSmacallan
31e4da13eeSmacallandriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
32e4da13eeSmacallan
33e4da13eeSmacallanEXTRA_DIST = @DRIVER_NAME@.man
34e4da13eeSmacallan
35e4da13eeSmacallanCLEANFILES = $(driverman_DATA)
36e4da13eeSmacallan
37e4da13eeSmacallanSED = sed
38e4da13eeSmacallan
39e4da13eeSmacallan# Strings to replace in man pages
40e4da13eeSmacallanXORGRELSTRING = @PACKAGE_STRING@
41e4da13eeSmacallan  XORGMANNAME = X Version 11
42e4da13eeSmacallan
43e4da13eeSmacallanMAN_SUBSTS = \
44e4da13eeSmacallan	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
45e4da13eeSmacallan	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
46e4da13eeSmacallan	-e 's|__xservername__|Xorg|g' \
47e4da13eeSmacallan	-e 's|__xconfigfile__|xorg.conf|g' \
48e4da13eeSmacallan	-e 's|__projectroot__|$(prefix)|g' \
49e4da13eeSmacallan	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
50e4da13eeSmacallan	-e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
51e4da13eeSmacallan	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
52e4da13eeSmacallan	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
53e4da13eeSmacallan	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
54e4da13eeSmacallan
55e4da13eeSmacallanSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
56e4da13eeSmacallan
57e4da13eeSmacallan.man.$(DRIVER_MAN_SUFFIX):
58e4da13eeSmacallan	sed $(MAN_SUBSTS) < $< > $@
59