1706f2543Smrgappmandir = $(APP_MAN_DIR) 2706f2543Smrg#appman_PRE = list of application man page files set by calling Makefile.am 3706f2543Smrgappman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX)) 4706f2543Smrg 5706f2543Smrgdrivermandir = $(DRIVER_MAN_DIR) 6706f2543Smrg#driverman_PRE = list of driver man page files set by calling Makefile.am 7706f2543Smrgdriverman_DATA = $(driverman_PRE:man=$(DRIVER_MAN_SUFFIX)) 8706f2543Smrg 9706f2543Smrgfilemandir = $(FILE_MAN_DIR) 10706f2543Smrg#fileman_PRE = list of file man page files set by calling Makefile.am 11706f2543Smrgfileman_DATA = $(fileman_PRE:man=$(FILE_MAN_SUFFIX)) 12706f2543Smrg 13706f2543Smrg# The calling Makefile should only contain man page targets 14706f2543Smrg# Otherwise the following three global variables may conflict 15706f2543SmrgEXTRA_DIST = $(appman_PRE) $(driverman_PRE) $(fileman_PRE) 16706f2543SmrgCLEANFILES = $(appman_DATA) $(driverman_DATA) $(fileman_DATA) 17706f2543SmrgSUFFIXES = .$(APP_MAN_SUFFIX) .$(DRIVER_MAN_SUFFIX) .$(FILE_MAN_SUFFIX) .man 18706f2543Smrg 19706f2543Smrg# Add server specific man pages string substitution from XORG_MANPAGE_SECTIONS 20706f2543Smrg# 's|/,|/, |g' will add a space to help font path formatting 21706f2543SmrgMAN_SUBSTS += -e 's|__logdir__|$(logdir)|g' \ 22706f2543Smrg -e 's|__datadir__|$(datadir)|g' \ 23706f2543Smrg -e 's|__mandir__|$(mandir)|g' \ 24706f2543Smrg -e 's|__sysconfdir__|$(sysconfdir)|g' \ 25706f2543Smrg -e 's|__xconfigdir__|$(__XCONFIGDIR__)|g' \ 26706f2543Smrg -e 's|__xkbdir__|$(XKB_BASE_DIRECTORY)|g' \ 27706f2543Smrg -e 's|__laucnd_id_prefix__|$(LAUNCHD_ID_PREFIX)|g' \ 28706f2543Smrg -e 's|__modulepath__|$(DEFAULT_MODULE_PATH)|g' \ 29706f2543Smrg -e 's|__default_font_path__|$(COMPILEDDEFAULTFONTPATH)|g' \ 30706f2543Smrg -e '\|$(COMPILEDDEFAULTFONTPATH)| s|/,|/, |g' 31706f2543Smrg 32706f2543Smrg.man.$(APP_MAN_SUFFIX): 33706f2543Smrg $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 34706f2543Smrg.man.$(DRIVER_MAN_SUFFIX): 35706f2543Smrg $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 36706f2543Smrg.man.$(FILE_MAN_SUFFIX): 37706f2543Smrg $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 38