Commit a9e85013 authored by Gaetan Nadon's avatar Gaetan Nadon Committed by Keith Packard

man: build Xorg and xorg.conf man pages using XORG_MANPAGE_SECTIONS

Nothing requires the use of a C preprocessor
Using standard file extensions (.man) means no need for .gitignore
Use standard directory and makefile
Reviewed-by: Alan Coopersmith's avatarAlan Coopersmith <>
Reviewed-by: default avatarRémi Cardona <>
Signed-off-by: Gaetan Nadon's avatarGaetan Nadon <>
Signed-off-by: Keith Packard's avatarKeith Packard <>
parent dcdd8ea8
# Add & Override for this directory and it's subdirectories
# covers options generic to all X servers built in this tree
appmandir = $(APP_MAN_DIR)
appman_DATA = Xorg.$(APP_MAN_SUFFIX)
appman_PRE =
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
filemandir = $(FILE_MAN_DIR)
fileman_DATA = xorg.conf.$(FILE_MAN_SUFFIX)
-$(AM_V_at)rm -f Xorg.$(APP_MAN_SUFFIX)
$(AM_V_at)$(LN_S) Xorg.$(APP_MAN_SUFFIX)
-$(AM_V_at)rm -f xorg.conf.$(FILE_MAN_SUFFIX)
$(AM_V_at)$(LN_S) xorg.conf.$(FILE_MAN_SUFFIX)
include $(top_srcdir)/
EXTRAMANDEFS = -D__logdir__=$(logdir)
CLEANFILES = $(appman_DATA) $(fileman_DATA)
fileman_PRE =
fileman_DATA = $(fileman_PRE:man=$(FILE_MAN_SUFFIX))
EXTRA_DIST = $(appman_PRE) $(fileman_PRE)
CLEANFILES = $(appman_DATA) $(fileman_DATA)
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
MAN_SUBSTS += -e 's|__logdir__|$(logdir)|g' \
-e 's|__datadir__|$(datadir)|g' \
-e 's|__mandir__|$(mandir)|g' \
-e 's|__sysconfdir__|$(sysconfdir)|g' \
-e 's|__xconfigdir__|$(__XCONFIGDIR__)|g' \
-e 's|__xkbdir__|$(XKB_BASE_DIRECTORY)|g' \
-e 's|__modulepath__|$(DEFAULT_MODULE_PATH)|g'
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment