1libmandir = $(LIB_MAN_DIR)
2
3libman_PRE =				\
4	Xcursor.man			\
5	$(Xcursor_shadows:=.man)
6
7Xcursor_shadows =			\
8	XcursorAnimateCreate		\
9	XcursorAnimateDestroy		\
10	XcursorAnimateNext		\
11	XcursorCommentCreate		\
12	XcursorCommentDestroy		\
13	XcursorCommentsCreate		\
14	XcursorCommentsDestroy		\
15	XcursorCursorsCreate		\
16	XcursorCursorsDestroy		\
17	XcursorFileLoad			\
18	XcursorFileLoadAllImages	\
19	XcursorFileLoadImage		\
20	XcursorFileLoadImages		\
21	XcursorFileSave			\
22	XcursorFileSaveImages		\
23	XcursorFilenameLoad		\
24	XcursorFilenameLoadAllImages	\
25	XcursorFilenameLoadCursor	\
26	XcursorFilenameLoadCursors	\
27	XcursorFilenameLoadImage	\
28	XcursorFilenameLoadImages	\
29	XcursorFilenameSave		\
30	XcursorFilenameSaveImages	\
31	XcursorGetDefaultSize		\
32	XcursorGetTheme			\
33	XcursorGetThemeCore		\
34	XcursorImageCreate		\
35	XcursorImageDestroy		\
36	XcursorImageHash		\
37	XcursorImageLoadCursor		\
38	XcursorImagesCreate		\
39	XcursorImagesDestroy		\
40	XcursorImagesLoadCursor		\
41	XcursorImagesLoadCursors	\
42	XcursorImagesSetName		\
43	XcursorLibraryLoadCursor	\
44	XcursorLibraryLoadCursors	\
45	XcursorLibraryLoadImage		\
46	XcursorLibraryLoadImages	\
47	XcursorLibraryPath		\
48	XcursorLibraryShape		\
49	XcursorNoticeCreateBitmap	\
50	XcursorNoticePutBitmap		\
51	XcursorSetDefaultSize		\
52	XcursorSetTheme			\
53	XcursorSetThemeCore		\
54	XcursorShapeLoadCursor		\
55	XcursorShapeLoadCursors		\
56	XcursorShapeLoadImage		\
57	XcursorShapeLoadImages		\
58	XcursorSupportsARGB		\
59	XcursorSupportsAnim		\
60	XcursorTryShapeBitmapCursor	\
61	XcursorTryShapeCursor		\
62	XcursorXcFileLoad		\
63	XcursorXcFileLoadAllImages	\
64	XcursorXcFileLoadImage		\
65	XcursorXcFileLoadImages		\
66	XcursorXcFileSave
67
68libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@)
69
70EXTRA_DIST = $(libman_PRE)
71CLEANFILES = $(libman_DATA)
72
73SUFFIXES = .$(LIB_MAN_SUFFIX) .man
74
75# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
76# 's/:/, /g' will add comma and a space to help path formatting
77MAN_SUBSTS += -e 's|__XCURSORPATH__|$(XCURSORPATH)|g' \
78	      -e '\|$(XCURSORPATH)| s/:/, /g'
79
80.man.$(LIB_MAN_SUFFIX):
81	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
82