]> diplodocus.org Git - xorg-xinput/blob - man/Makefile.am
Require xorg-macros 1.3 for XORG_DEFAULT_OPTIONS.
[xorg-xinput] / man / Makefile.am
1 #
2 # Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au>
3 #
4 # Permission to use, copy, modify, distribute, and sell this software and its
5 # documentation for any purpose is hereby granted without fee, provided that
6 # the above copyright notice appear in all copies and that both that
7 # copyright notice and this permission notice appear in supporting
8 # documentation, and that the name of the author not be used in
9 # advertising or publicity pertaining to distribution of the software without
10 # specific, written prior permission. The author makes no
11 # representations about the suitability of this software for any purpose. It
12 # is provided "as is" without express or implied warranty.
13 #
14 # THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 # PERFORMANCE OF THIS SOFTWARE.
21
22
23 appmandir = $(APP_MAN_DIR)
24 appman_PRE = xinput.man
25 appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
26
27 EXTRA_DIST = $(appman_PRE)
28 CLEANFILES = $(appman_DATA)
29
30 SED = sed
31
32 # Strings to replace in man pages
33 XORGRELSTRING = @PACKAGE_STRING@
34 XORGMANNAME = X Version 11
35
36 MAN_SUBSTS = \
37 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
38 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
39 -e 's|__xservername__|Xorg|g' \
40 -e 's|__xconfigfile__|xorg.conf|g' \
41 -e 's|__projectroot__|$(prefix)|g' \
42 -e 's|__apploaddir__|$(appdefaultdir)|' \
43 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
44 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
45 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
46 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
47 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
48
49 SUFFIXES = .$(APP_MAN_SUFFIX) .man
50
51 .man.$(APP_MAN_SUFFIX):
52 sed $(MAN_SUBSTS) < $< > $@
53