2010-05-18 13:28:54 -06:00
|
|
|
#
|
2006-11-25 10:22:40 -07:00
|
|
|
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
2010-05-18 13:28:54 -06:00
|
|
|
#
|
2010-11-11 03:49:21 -07:00
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
|
|
# to deal in the Software without restriction, including without limitation
|
|
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
# Software is furnished to do so, subject to the following conditions:
|
2010-05-18 13:28:54 -06:00
|
|
|
#
|
2010-11-11 03:49:21 -07:00
|
|
|
# The above copyright notice and this permission notice (including the next
|
|
|
|
# paragraph) shall be included in all copies or substantial portions of the
|
|
|
|
# Software.
|
2010-05-18 13:28:54 -06:00
|
|
|
#
|
2010-11-11 03:49:21 -07:00
|
|
|
# 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
2010-05-18 13:28:54 -06:00
|
|
|
#
|
2006-11-25 10:22:40 -07:00
|
|
|
|
|
|
|
libmandir = $(LIB_MAN_DIR)
|
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
# Source files for X Input v2 man pages
|
|
|
|
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 \
|
2010-05-18 13:28:54 -06:00
|
|
|
XIChangeProperty.txt
|
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
# Source files for X Input v1 man pages
|
2010-05-18 13:28:54 -06:00
|
|
|
libman_txt = \
|
2010-11-11 03:49:21 -07:00
|
|
|
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)
|
|
|
|
|
|
|
|
# Name of DocBook XML files generated from .txt files by asciidoc
|
2010-05-18 13:28:54 -06:00
|
|
|
libman_xml = $(libman_txt:.txt=.xml)
|
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
# Shadow man pages are simply links to a main man page.
|
|
|
|
# They are created by the xmlto command when generating man pages from DocBook
|
|
|
|
# The shadow man page contains a gtroff .so request to include the main man page
|
|
|
|
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 \
|
2010-05-18 13:28:54 -06:00
|
|
|
XIFreeDeviceInfo.man
|
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
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)
|
|
|
|
|
|
|
|
# Name of man page files generated from DocBook XML files by xmlto
|
|
|
|
libman_PRE = $(libman_txt:.txt=.man) $(libman_shadows)
|
2010-05-18 13:28:54 -06:00
|
|
|
|
2010-09-04 04:16:57 -06:00
|
|
|
if INSTALL_MANPAGES
|
2010-11-11 03:49:21 -07:00
|
|
|
libman_DATA = $(libman_PRE:.man=.$(LIB_MAN_SUFFIX))
|
2010-05-18 13:28:54 -06:00
|
|
|
endif
|
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
EXTRA_DIST = $(libman_txt) $(libman_PRE)
|
|
|
|
CLEANFILES = $(libman_DATA) *.libmansuffix
|
|
|
|
MAINTAINERCLEANFILES = $(libman_PRE) *.xml
|
2010-05-18 13:28:54 -06:00
|
|
|
|
2010-09-04 04:16:57 -06:00
|
|
|
if HAVE_DOCTOOLS
|
2010-11-11 03:49:21 -07:00
|
|
|
# Dependencies for X Input v1 shadow pages
|
2010-05-18 13:28:54 -06:00
|
|
|
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
|
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
# Dependencies for X Input v2 shadow pages
|
2010-05-18 13:28:54 -06:00
|
|
|
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
|
2010-09-04 04:16:57 -06:00
|
|
|
endif
|
2006-11-25 10:22:40 -07:00
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
|
|
|
# Unable to use __libmansuffix__ as underscores are lost in txt --> xml conversion
|
|
|
|
MAN_SUBSTS += -e 's/libmansuffix/$(LIB_MAN_SUFFIX)/g'
|
2006-11-25 10:22:40 -07:00
|
|
|
|
2010-05-18 13:28:54 -06:00
|
|
|
SUFFIXES = .man .$(LIB_MAN_SUFFIX)
|
2006-11-25 10:22:40 -07:00
|
|
|
.man.$(LIB_MAN_SUFFIX):
|
2010-11-11 03:49:21 -07:00
|
|
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
2010-05-18 13:28:54 -06:00
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
# Generate man pages and shadow pages from .txt and then from DocBook XML
|
2010-05-18 13:28:54 -06:00
|
|
|
if HAVE_DOCTOOLS
|
|
|
|
SUFFIXES += .txt .xml
|
|
|
|
.txt.xml:
|
2010-11-11 03:49:21 -07:00
|
|
|
$(AM_V_GEN)$(ASCIIDOC) -b docbook -d manpage -o $@ $<
|
2010-05-18 13:28:54 -06:00
|
|
|
.xml.man:
|
2010-11-11 03:49:21 -07:00
|
|
|
$(AM_V_GEN)$(XMLTO) man $<
|
|
|
|
$(AM_V_GEN)mv -f $(@:.man=.libmansuffix) $@
|
2010-05-18 13:28:54 -06:00
|
|
|
|
2010-11-11 03:49:21 -07:00
|
|
|
# Invoke asciidoc/xmlto main man page generation for shadow pages
|
|
|
|
$(libman_shadows):
|
2010-05-18 13:28:54 -06:00
|
|
|
@if test ! -f $(@:.man=.libmansuffix); then \
|
2010-11-11 03:49:21 -07:00
|
|
|
$(AM_V_GEN)rm -f $<; \
|
|
|
|
$(AM_V_GEN)$(MAKE) $(AM_MAKEFLAGS) $< || exit 1; \
|
2010-05-18 13:28:54 -06:00
|
|
|
fi
|
2010-11-11 03:49:21 -07:00
|
|
|
$(AM_V_GEN)mv -f $(@:.man=.libmansuffix) $@
|
2010-05-18 13:28:54 -06:00
|
|
|
endif
|