Makefile.am revision c43cc173
1# $Id: Makefile.am,v 1.1.1.1 2008/07/30 02:50:11 mrg Exp $ 2# 3# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4# 5# Permission to use, copy, modify, distribute, and sell this software and its 6# documentation for any purpose is hereby granted without fee, provided that 7# the above copyright notice appear in all copies and that both that 8# copyright notice and this permission notice appear in supporting 9# documentation. 10# 11# The above copyright notice and this permission notice shall be included 12# in all copies or substantial portions of the Software. 13# 14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 18# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20# OTHER DEALINGS IN THE SOFTWARE. 21# 22# Except as contained in this notice, the name of the copyright holders shall 23# not be used in advertising or otherwise to promote the sale, use or 24# other dealings in this Software without prior written authorization 25# from the copyright holders. 26# 27 28libmandir = $(LIB_MAN_DIR) 29 30LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%) 31 32libman_PRE = \ 33 XAllowDeviceEvents.man \ 34 XChangeDeviceDontPropagateList.man \ 35 XChangeKeyboardDevice.man \ 36 XChangePointerDevice.man \ 37 XDeviceBell.man \ 38 XGetDeviceControl.man \ 39 XGetDeviceKeyMapping.man \ 40 XGetDeviceModifierMapping.man \ 41 XGetDeviceMotionEvents.man \ 42 XGetExtensionVersion.man \ 43 XGetFeedbackControl.man \ 44 XGrabDevice.man \ 45 XGrabDeviceButton.man \ 46 XGrabDeviceKey.man \ 47 XListInputDevices.man \ 48 XOpenDevice.man \ 49 XQueryDeviceState.man \ 50 XSelectExtensionEvent.man \ 51 XSendExtensionEvent.man \ 52 XSetDeviceButtonMapping.man \ 53 XSetDeviceFocus.man \ 54 XSetDeviceMode.man \ 55 XSetDeviceValuators.man 56 57BUILT_SOURCES = shadows.DONE 58 59EXTRA_DIST = $(libman_PRE) 60 61CLEANFILES = $(libman_DATA) $(BUILT_SOURCES) 62 63libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \ 64 $(all_shadows:=.@LIB_MAN_SUFFIX@) 65 66SED = sed 67 68# Strings to replace in man pages 69XORGRELSTRING = @PACKAGE_STRING@ 70 XORGMANNAME = X Version 11 71 72SUFFIXES = .$(LIB_MAN_SUFFIX) .man 73 74.man.$(LIB_MAN_SUFFIX): 75 sed 's/__xorgversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/; s/__LIB_MAN_SUFFIX__/$(LIB_MAN_SUFFIX)/' < $< > $@ 76 77# Generate man page shadow files (Replaces InstallManPageAliases from Imake) 78 79all_shadows = \ 80 $(XGetDeviceControl_shadows) \ 81 $(XGetFeedbackControl_shadows) \ 82 $(XGetDeviceKeyMapping_shadows) \ 83 $(XGetDeviceModifierMapping_shadows) \ 84 $(XChangeDeviceDontPropagateList_shadows) \ 85 $(XGetDeviceMotionEvents_shadows) \ 86 $(XGrabDeviceButton_shadows) \ 87 $(XGrabDeviceKey_shadows) \ 88 $(XGrabDevice_shadows) \ 89 $(XListInputDevices_shadows) \ 90 $(XOpenDevice_shadows) \ 91 $(XSetDeviceButtonMapping_shadows) \ 92 $(XSetDeviceFocus_shadows) \ 93 $(XSelectExtensionEvent_shadows) 94 95 96XGetDeviceControl_shadows = \ 97 XChangeDeviceControl 98 99XGetFeedbackControl_shadows = \ 100 XChangeFeedbackControl 101 102XGetDeviceKeyMapping_shadows = \ 103 XChangeDeviceKeyMapping 104 105XGetDeviceModifierMapping_shadows = \ 106 XSetDeviceModifierMapping 107 108XChangeDeviceDontPropagateList_shadows = \ 109 XGetDeviceDontPropagateList 110 111XGetDeviceMotionEvents_shadows = \ 112 XDeviceTimeCoord 113 114XGrabDeviceButton_shadows = \ 115 XUngrabDeviceButton 116 117XGrabDeviceKey_shadows = \ 118 XUngrabDeviceKey 119 120XGrabDevice_shadows = \ 121 XUngrabDevice 122 123XListInputDevices_shadows = \ 124 XFreeDeviceList 125 126XOpenDevice_shadows = \ 127 XCloseDevice 128 129XSetDeviceButtonMapping_shadows = \ 130 XGetDeviceButtonMapping 131 132XSetDeviceFocus_shadows = \ 133 XGetDeviceFocus 134 135XSelectExtensionEvent_shadows = \ 136 XGetSelectedExtensionEvents 137 138shadows.DONE: 139 -rm -f $(all_shadows:=.@LIB_MAN_SUFFIX@) 140 (for i in $(XGetDeviceControl_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 141 echo .so man$(LIB_MAN_DIR_SUFFIX)/XGetDeviceControl.$(LIB_MAN_SUFFIX) > $$i; \ 142 done) 143 (for i in $(XGetFeedbackControl_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 144 echo .so man$(LIB_MAN_DIR_SUFFIX)/XGetFeedbackControl.$(LIB_MAN_SUFFIX) > $$i; \ 145 done) 146 (for i in $(XGetDeviceKeyMapping_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 147 echo .so man$(LIB_MAN_DIR_SUFFIX)/XGetDeviceKeyMapping.$(LIB_MAN_SUFFIX) > $$i; \ 148 done) 149 (for i in $(XGetDeviceModifierMapping_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 150 echo .so man$(LIB_MAN_DIR_SUFFIX)/XGetDeviceModifierMapping.$(LIB_MAN_SUFFIX) > $$i; \ 151 done) 152 (for i in $(XChangeDeviceDontPropagateList_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 153 echo .so man$(LIB_MAN_DIR_SUFFIX)/XChangeDeviceDontPropagateList.$(LIB_MAN_SUFFIX) > $$i; \ 154 done) 155 (for i in $(XGetDeviceMotionEvents_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 156 echo .so man$(LIB_MAN_DIR_SUFFIX)/XGetDeviceMotionEvents.$(LIB_MAN_SUFFIX) > $$i; \ 157 done) 158 (for i in $(XGrabDeviceButton_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 159 echo .so man$(LIB_MAN_DIR_SUFFIX)/XGrabDeviceButton.$(LIB_MAN_SUFFIX) > $$i; \ 160 done) 161 (for i in $(XGrabDeviceKey_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 162 echo .so man$(LIB_MAN_DIR_SUFFIX)/XGrabDeviceKey.$(LIB_MAN_SUFFIX) > $$i; \ 163 done) 164 (for i in $(XGrabDevice_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 165 echo .so man$(LIB_MAN_DIR_SUFFIX)/XGrabDevice.$(LIB_MAN_SUFFIX) > $$i; \ 166 done) 167 (for i in $(XListInputDevices_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 168 echo .so man$(LIB_MAN_DIR_SUFFIX)/XListInputDevices.$(LIB_MAN_SUFFIX) > $$i; \ 169 done) 170 (for i in $(XOpenDevice_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 171 echo .so man$(LIB_MAN_DIR_SUFFIX)/XOpenDevice.$(LIB_MAN_SUFFIX) > $$i; \ 172 done) 173 (for i in $(XSetDeviceButtonMapping_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 174 echo .so man$(LIB_MAN_DIR_SUFFIX)/XSetDeviceButtonMapping.$(LIB_MAN_SUFFIX) > $$i; \ 175 done) 176 (for i in $(XSetDeviceFocus_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 177 echo .so man$(LIB_MAN_DIR_SUFFIX)/XSetDeviceFocus.$(LIB_MAN_SUFFIX) > $$i; \ 178 done) 179 (for i in $(XSelectExtensionEvent_shadows:=.@LIB_MAN_SUFFIX@) ; do \ 180 echo .so man$(LIB_MAN_DIR_SUFFIX)/XSelectExtensionEvent.$(LIB_MAN_SUFFIX) > $$i; \ 181 done) 182