1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 # Permission to use, copy, modify, distribute, and sell this software and its
4 # documentation for any purpose is hereby granted without fee, provided that
5 # the above copyright notice appear in all copies and that both that
6 # copyright notice and this permission notice appear in supporting
7 # documentation, and that the name of Red Hat not be used in
8 # advertising or publicity pertaining to distribution of the software without
9 # specific, written prior permission. Red Hat makes no
10 # representations about the suitability of this software for any purpose. It
11 # is provided "as is" without express or implied warranty.
13 # RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
15 # EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
17 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 # PERFORMANCE OF THIS SOFTWARE.
22 drivermandir = $(DRIVER_MAN_DIR)
24 driverman_PRE = @DRIVER_NAME@.man
26 driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
28 EXTRA_DIST = @DRIVER_NAME@.man
30 CLEANFILES = $(driverman_DATA)
34 # Strings to replace in man pages
35 XORGRELSTRING = @PACKAGE_STRING@
36 XORGMANNAME = X Version 11
39 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
40 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
41 -e 's|__xservername__|Xorg|g' \
42 -e 's|__xconfigfile__|xorg.conf|g' \
43 -e 's|__projectroot__|$(prefix)|g' \
44 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
45 -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
46 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
47 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
48 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
50 SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
52 .man.$(DRIVER_MAN_SUFFIX):
53 sed $(MAN_SUBSTS) < $< > $@