blob: abb555d75a14bed5e946290c03698a99965fe4e5 (
plain)
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
|
libmandir = $(LIB_MAN_DIR)
libman_PRE = Xcursor.man
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@)
all-local: $(libman_DATA)
EXTRA_DIST = $(libman_PRE)
CLEANFILES = $(libman_DATA)
SUFFIXES = .$(LIB_MAN_SUFFIX) .man
# Strings to replace in man pages
XORGRELSTRING = @PACKAGE_STRING@
MAN_SUBSTS = \
-e 's|__xorgversion__|"$(XORGRELSTRING)"|' \
-e 's|__XCURSORPATH__|$(XCURSORPATH_LIST)|g' \
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
.man.$(LIB_MAN_SUFFIX):
-rm -f $@
sed $(MAN_SUBSTS) < $< > $@
# Generate man page shadow files
LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%)
libman_DATA += $(Xcursor_shadows:=.@LIB_MAN_SUFFIX@)
BUILT_SOURCES = shadows.DONE
CLEANFILES += shadows.DONE
Xcursor_shadows = \
XcursorImageCreate \
XcursorImageDestroy \
XcursorImagesCreate \
XcursorImagesDestroy \
XcursorCursorsCreate \
XcursorCursorsDestroy \
XcursorXcFileLoadImage \
XcursorXcFileLoadImages \
XcursorXcFileLoadAllImages \
XcursorXcFileLoad \
XcursorXcFileSave \
XcursorFilenameLoadImage \
XcursorFilenameLoadImages \
XcursorFilenameLoadAllImages \
XcursorFilenameLoad \
XcursorFilenameSaveImages \
XcursorFilenameSave \
XcursorLibraryLoadImage \
XcursorLibraryLoadImages \
XcursorFilenameLoadCursor \
XcursorLibraryLoadCursor \
XcursorLibraryLoadCursors \
XcursorShapeLoadImage \
XcursorShapeLoadImages \
XcursorShapeLoadCursor \
XcursorShapeLoadCursors \
XcursorSupportsARGB \
XcursorSetDefaultSize \
XcursorGetDefaultSize \
XcursorSetTheme \
XcursorGetTheme
shadows.DONE:
-rm -f $(Xcursor_shadows:=.@LIB_MAN_SUFFIX@)
(for i in $(Xcursor_shadows:=.@LIB_MAN_SUFFIX@) ; do \
echo .so man$(LIB_MAN_DIR_SUFFIX)/Xcursor.$(LIB_MAN_SUFFIX) > $$i; \
done)
|