File: Makefile.am

package info (click to toggle)
libxi 2:1.3-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,476 kB
  • ctags: 906
  • sloc: sh: 10,500; ansic: 6,600; makefile: 454
file content (186 lines) | stat: -rw-r--r-- 5,806 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation.
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the copyright holders shall
# not be used in advertising or otherwise to promote the sale, use or
# other dealings in this Software without prior written authorization
# from the copyright holders.
#

libmandir = $(LIB_MAN_DIR)

LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%)

XI2_manpages = \
	XIChangeHierarchy.txt \
	XIDefineCursor.txt \
	XIGrabButton.txt \
	XIGrabDevice.txt \
        XIGrabEnter.txt \
	XIQueryDevice.txt \
	XIQueryPointer.txt \
	XIQueryVersion.txt \
	XISelectEvents.txt \
	XISetClientPointer.txt \
	XISetFocus.txt \
	XIWarpPointer.txt \
	XIListProperties.txt \
	XIChangeProperty.txt

libman_txt = \
	XAllowDeviceEvents.txt \
	XChangeDeviceDontPropagateList.txt \
	XChangeKeyboardDevice.txt \
	XChangePointerDevice.txt \
	XDeviceBell.txt \
	XGetDeviceControl.txt \
	XGetDeviceKeyMapping.txt \
	XGetDeviceModifierMapping.txt \
	XGetDeviceMotionEvents.txt \
	XGetDeviceProperty.txt \
	XGetExtensionVersion.txt \
	XGetFeedbackControl.txt \
	XGrabDeviceButton.txt \
	XGrabDeviceKey.txt \
	XGrabDevice.txt \
	XListDeviceProperties.txt \
	XListInputDevices.txt \
	XOpenDevice.txt \
	XQueryDeviceState.txt \
	XSelectExtensionEvent.txt \
	XSendExtensionEvent.txt \
	XSetDeviceButtonMapping.txt \
	XSetDeviceFocus.txt \
	XSetDeviceMode.txt \
	XSetDeviceValuators.txt \
        $(XI2_manpages)

libman_xml = $(libman_txt:.txt=.xml)
# manpages that are references to another page. These are produced as a
# side effect of the xmlto rule, so they need to be handled specially.

XI2_refpages = \
	XIUndefineCursor.man \
	XIUngrabButton.man \
	XIGrabKeycode.man \
	XIUngrabKeycode.man \
	XIUngrabDevice.man  \
        XIUngrabEnter.man \
        XIGrabFocusIn.man \
        XIUngrabFocusIn.man \
	XIGetClientPointer.man \
	XIGetFocus.man \
	XIGetSelectedEvents.man \
	XIDeleteProperty.man \
	XIGetProperty.man \
	XIFreeDeviceInfo.man

libman_ref = \
	XGetDeviceDontPropagateList.man \
	XChangeDeviceControl.man \
	XChangeDeviceKeyMapping.man \
	XSetDeviceModifierMapping.man \
	XChangeFeedbackControl.man \
	XUngrabDeviceButton.man \
	XUngrabDeviceKey.man \
	XUngrabDevice.man \
	XDeviceTimeCoord.man \
	XFreeDeviceList.man \
	XCloseDevice.man \
	XGetSelectedExtensionEvents.man \
	XGetDeviceButtonMapping.man \
	XGetDeviceFocus.man \
	XChangeDeviceProperty.man \
	XDeleteDeviceProperty.man \
        $(XI2_refpages)


libman_pre = $(libman_txt:.txt=.man) $(libman_ref)

if HAVE_DOCTOOLS
nodist_libman_DATA = $(libman_pre:.man=.$(LIB_MAN_SUFFIX))
endif

EXTRA_DIST = $(libman_txt) $(libman_pre)
CLEANFILES = $(nodist_libman_DATA) *.libmansuffix
MAINTAINERCLEANFILES = $(libman_pre) *.xml

# prerequisites for the side effect pages
XGetDeviceDontPropagateList.man: XChangeDeviceDontPropagateList.man
XChangeDeviceControl.man: XGetDeviceControl.man
XChangeDeviceKeyMapping.man: XGetDeviceKeyMapping.man
XSetDeviceModifierMapping.man: XGetDeviceModifierMapping.man
XDeviceTimeCoord.man: XGetDeviceMotionEvents.man
XChangeFeedbackControl.man: XGetFeedbackControl.man
XUngrabDeviceButton.man: XGrabDeviceButton.man
XUngrabDeviceKey.man: XGrabDeviceKey.man
XUngrabDevice.man: XGrabDevice.man
XFreeDeviceList.man: XListInputDevices.man
XCloseDevice.man: XOpenDevice.man
XGetSelectedExtensionEvents.man: XSelectExtensionEvent.man
XGetDeviceButtonMapping.man: XSetDeviceButtonMapping.man
XGetDeviceFocus.man: XSetDeviceFocus.man
XChangeDeviceProperty.man: XGetDeviceProperty.man
XDeleteDeviceProperty.man: XGetDeviceProperty.man

# XI2 prereqs
XIUndefineCursor.man: XIDefineCursor.man
XIUngrabButton.man XIGrabKeycode.man XIUngrabKeycode.man: XIGrabButton.man
XIGetClientPointer.man: XISetClientPointer.man
XIGetFocus.man: XISetFocus.man
XIUngrabDevice.man: XIGrabDevice.man
XIGetProperty.man: XIChangeProperty.man
XIDeleteProperty.man: XIChangeProperty.man
XIUngrabEnter.man XIGrabFocusIn.man XIUngrabFocusIn.man: XIGrabEnter.man
XIGetSelectedEvents.man: XISelectEvents.man
XIFreeDeviceInfo.man: XIQueryDevice.man

# Strings to replace in man pages
XORGRELSTRING = $(PACKAGE_STRING)
  XORGMANNAME = X Version 11

MAN_SUBSTS = \
	-e 's/__xorgversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/' \
	-e 's/__xservername__/Xorg/g' \
	-e 's/__xconfigfile__/xorg.conf/g' \
	-e 's/__appmansuffix__/$(APP_MAN_SUFFIX)/g' \
	-e 's/libmansuffix/$(LIB_MAN_SUFFIX)/g' \
	-e 's/__filemansuffix__/$(FILE_MAN_SUFFIX)/g'

SUFFIXES = .man .$(LIB_MAN_SUFFIX)
.man.$(LIB_MAN_SUFFIX):
	$(SED) $(MAN_SUBSTS) < $< > $@

if HAVE_DOCTOOLS
SUFFIXES += .txt .xml
.txt.xml:
	$(ASCIIDOC) -b docbook -d manpage -o $@ $<
.xml.man:
	$(XMLTO) man $<
	mv -f $(@:.man=.libmansuffix) $@

# need to force asciidoc/xmlto to run if necessary for side effect pages
$(libman_ref):
	@if test ! -f $(@:.man=.libmansuffix); then \
	  rm -f $<; \
	  $(MAKE) $(AM_MAKEFLAGS) $< || exit 1; \
	fi
	mv -f $(@:.man=.libmansuffix) $@
endif