libmandir = $(LIB_MAN_DIR)
XI2_txt = \
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_txt)
libman_xml = $(libman_txt:.txt=.xml)
XI2_shadows = \
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_shadows = \
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_shadows)
libman_PRE = $(libman_txt:.txt=.man) $(libman_shadows)
if INSTALL_MANPAGES
libman_DATA = $(libman_PRE:.man=.$(LIB_MAN_SUFFIX))
endif
EXTRA_DIST = $(libman_txt) $(libman_PRE)
CLEANFILES = $(libman_DATA) *.libmansuffix
MAINTAINERCLEANFILES = $(libman_PRE) *.xml
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
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
MAN_SUBSTS += -e 's/libmansuffix/$(LIB_MAN_SUFFIX)/g'
SUFFIXES = .man .$(LIB_MAN_SUFFIX)
.man.$(LIB_MAN_SUFFIX):
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
if HAVE_DOCTOOLS
SUFFIXES += .txt .xml
.txt.xml:
$(AM_V_GEN)$(ASCIIDOC) -b docbook -d manpage -o $@ $<
.xml.man:
$(AM_V_GEN)$(XMLTO) man $<
$(AM_V_GEN)mv -f $(@:.man=.libmansuffix) $@
$(libman_shadows):
@if test ! -f $(@:.man=.libmansuffix); then \
$(AM_V_GEN)rm -f $<; \
$(AM_V_GEN)$(MAKE) $(AM_MAKEFLAGS) $< || exit 1; \
fi
$(AM_V_GEN)mv -f $(@:.man=.libmansuffix) $@
endif