]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/xserver.git/blob - manpages.am
Add patches for driver to handle the transform
[glsdk/xserver.git] / manpages.am
1 appmandir = $(APP_MAN_DIR)
2 #appman_PRE = list of application man page files set by calling Makefile.am
3 appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
5 drivermandir = $(DRIVER_MAN_DIR)
6 #driverman_PRE = list of driver man page files set by calling Makefile.am
7 driverman_DATA = $(driverman_PRE:man=$(DRIVER_MAN_SUFFIX))
9 filemandir = $(FILE_MAN_DIR)
10 #fileman_PRE = list of file man page files set by calling Makefile.am
11 fileman_DATA = $(fileman_PRE:man=$(FILE_MAN_SUFFIX))
13 # The calling Makefile should only contain man page targets
14 # Otherwise the following three global variables may conflict
15 EXTRA_DIST = $(appman_PRE) $(driverman_PRE) $(fileman_PRE)
16 CLEANFILES = $(appman_DATA) $(driverman_DATA) $(fileman_DATA)
17 SUFFIXES = .$(APP_MAN_SUFFIX) .$(DRIVER_MAN_SUFFIX) .$(FILE_MAN_SUFFIX) .man
19 # Add server specific man pages string substitution from XORG_MANPAGE_SECTIONS
20 # 's|/,|/, |g' will add a space to help font path formatting
21 MAN_SUBSTS +=   -e 's|__logdir__|$(logdir)|g' \
22                 -e 's|__datadir__|$(datadir)|g' \
23                 -e 's|__mandir__|$(mandir)|g' \
24                 -e 's|__sysconfdir__|$(sysconfdir)|g' \
25                 -e 's|__xconfigdir__|$(__XCONFIGDIR__)|g' \
26                 -e 's|__xkbdir__|$(XKB_BASE_DIRECTORY)|g' \
27                 -e 's|__XKB_DFLT_RULES__|$(XKB_DFLT_RULES)|g' \
28                 -e 's|__XKB_DFLT_MODEL__|$(XKB_DFLT_MODEL)|g' \
29                 -e 's|__XKB_DFLT_LAYOUT__|$(XKB_DFLT_LAYOUT)|g' \
30                 -e 's|__XKB_DFLT_VARIANT__|$(XKB_DFLT_VARIANT)|g' \
31                 -e 's|__XKB_DFLT_OPTIONS__|$(XKB_DFLT_OPTIONS)|g' \
32                 -e 's|__bundle_id_prefix__|$(BUNDLE_ID_PREFIX)|g' \
33                 -e 's|__modulepath__|$(DEFAULT_MODULE_PATH)|g' \
34                 -e 's|__default_font_path__|$(COMPILEDDEFAULTFONTPATH)|g' \
35                 -e '\|$(COMPILEDDEFAULTFONTPATH)| s|/,|/, |g'
37 .man.$(APP_MAN_SUFFIX):
38         $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
39 .man.$(DRIVER_MAN_SUFFIX):
40         $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
41 .man.$(FILE_MAN_SUFFIX):
42         $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@