Initial skeleton structure
[xf86-input-tuio.git] / man / Makefile.am
blob276f2f0d400111888ce3be0c360933b9bf8bd2e3
1 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
2
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.
8
9 # The above copyright notice and this permission notice shall be included
10 # in all copies or substantial portions of the Software.
11
12 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
13 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
15 # IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
16 # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
17 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
18 # OTHER DEALINGS IN THE SOFTWARE.
19
20 # Except as contained in this notice, the name of the copyright holders shall
21 # not be used in advertising or otherwise to promote the sale, use or
22 # other dealings in this Software without prior written authorization
23 # from the copyright holders.
24
26 drivermandir = $(DRIVER_MAN_DIR)
28 driverman_PRE = @DRIVER_NAME@.man
30 driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
32 EXTRA_DIST = @DRIVER_NAME@.man
34 CLEANFILES = $(driverman_DATA)
36 SED = sed
38 # Strings to replace in man pages
39 XORGRELSTRING = @PACKAGE_STRING@
40   XORGMANNAME = X Version 11
42 MAN_SUBSTS = \
43         -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
44         -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
45         -e 's|__xservername__|Xorg|g' \
46         -e 's|__xconfigfile__|xorg.conf|g' \
47         -e 's|__projectroot__|$(prefix)|g' \
48         -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
49         -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
50         -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
51         -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
52         -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
54 SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
56 .man.$(DRIVER_MAN_SUFFIX):
57         sed $(MAN_SUBSTS) < $< > $@