Makefile.am revision 72b676d7
172b676d7Smrg# $Id: Makefile.am,v 1.1.1.1 2008/08/02 05:16:35 mrg Exp $ 272b676d7Smrg# 372b676d7Smrg# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 472b676d7Smrg# 572b676d7Smrg# Permission to use, copy, modify, distribute, and sell this software and its 672b676d7Smrg# documentation for any purpose is hereby granted without fee, provided that 772b676d7Smrg# the above copyright notice appear in all copies and that both that 872b676d7Smrg# copyright notice and this permission notice appear in supporting 972b676d7Smrg# documentation. 1072b676d7Smrg# 1172b676d7Smrg# The above copyright notice and this permission notice shall be included 1272b676d7Smrg# in all copies or substantial portions of the Software. 1372b676d7Smrg# 1472b676d7Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1572b676d7Smrg# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1672b676d7Smrg# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 1772b676d7Smrg# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 1872b676d7Smrg# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1972b676d7Smrg# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2072b676d7Smrg# OTHER DEALINGS IN THE SOFTWARE. 2172b676d7Smrg# 2272b676d7Smrg# Except as contained in this notice, the name of the copyright holders shall 2372b676d7Smrg# not be used in advertising or otherwise to promote the sale, use or 2472b676d7Smrg# other dealings in this Software without prior written authorization 2572b676d7Smrg# from the copyright holders. 2672b676d7Smrg# 2772b676d7Smrg 2872b676d7Smrgdrivermandir = $(DRIVER_MAN_DIR) 2972b676d7Smrg 3072b676d7Smrgdriverman_PRE = @DRIVER_NAME@.man 3172b676d7Smrg 3272b676d7Smrgdriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 3372b676d7Smrg 3472b676d7SmrgEXTRA_DIST = @DRIVER_NAME@.man 3572b676d7Smrg 3672b676d7SmrgCLEANFILES = $(driverman_DATA) 3772b676d7Smrg 3872b676d7SmrgSED = sed 3972b676d7Smrg 4072b676d7Smrg# Strings to replace in man pages 4172b676d7SmrgXORGRELSTRING = @PACKAGE_STRING@ 4272b676d7Smrg XORGMANNAME = X Version 11 4372b676d7Smrg 4472b676d7SmrgMANDEFS = \ 4572b676d7Smrg -D__vendorversion__="\"$(XORGRELSTRING)\" \"$(XORGMANNAME)\"" \ 4672b676d7Smrg -D__appmansuffix__=$(APP_MAN_SUFFIX) \ 4772b676d7Smrg -D__filemansuffix__=$(FILE_MAN_SUFFIX) \ 4872b676d7Smrg -D__libmansuffix__=$(LIB_MAN_SUFFIX) \ 4972b676d7Smrg -D__miscmansuffix__=$(MISC_MAN_SUFFIX) \ 5072b676d7Smrg -D__drivermansuffix__=$(DRIVER_MAN_SUFFIX) \ 5172b676d7Smrg -D__adminmansuffix__=$(ADMIN_MAN_SUFFIX) \ 5272b676d7Smrg -D__xconfigfile__=xorg.conf \ 5372b676d7Smrg -D__xservername__=Xorg 5472b676d7Smrg 5572b676d7Smrg# Translate XCOMM into pound sign with sed, rather than passing -DXCOMM=XCOMM 5672b676d7Smrg# to cpp, because that trick does not work on all ANSI C preprocessors. 5772b676d7Smrg# Delete line numbers from the cpp output (-P is not portable, I guess). 5872b676d7Smrg# Allow XCOMM to be preceded by whitespace and provide a means of generating 5972b676d7Smrg# output lines with trailing backslashes. 6072b676d7Smrg# Allow XHASH to always be substituted, even in cases where XCOMM isn't. 6172b676d7Smrg 6272b676d7SmrgCPP_SED_MAGIC = $(SED) -e '/^\# *[0-9][0-9]* *.*$$/d' \ 6372b676d7Smrg -e '/^\#line *[0-9][0-9]* *.*$$/d' \ 6472b676d7Smrg -e '/^[ ]*XCOMM$$/s/XCOMM/\#/' \ 6572b676d7Smrg -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/\#/' \ 6672b676d7Smrg -e '/^[ ]*XHASH/s/XHASH/\#/' \ 6772b676d7Smrg -e '/\@\@$$/s/\@\@$$/\\/' 6872b676d7Smrg 6972b676d7SmrgSUFFIXES = .$(DRIVER_MAN_SUFFIX) .man 7072b676d7Smrg 7172b676d7Smrg.man.$(DRIVER_MAN_SUFFIX): 7272b676d7Smrg $(RAWCPP) $(RAWCPPFLAGS) $(MANDEFS) $(EXTRAMANDEFS) < $< | $(CPP_SED_MAGIC) > $@ 7372b676d7Smrg 74