config: build Xserver man pages using XORG_MANPAGE_SECTIONS
Nothing requires the use of a C preprocessor Using standard file exentions (.man) means no need for .gitignore Use standard directory and makefile Fix man page whitespace issues Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Dew <matt@osource.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
c4a7a5917a
commit
79870dbf72
|
@ -2180,6 +2180,7 @@ damageext/Makefile
|
|||
dbe/Makefile
|
||||
dix/Makefile
|
||||
doc/Makefile
|
||||
doc/man/Makefile
|
||||
doc/xml/Makefile
|
||||
doc/xml/dtrace/Makefile
|
||||
doc/xml/xserver.ent
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
# Add & Override for this directory and it's subdirectories
|
||||
Xserver.man
|
|
@ -1,26 +1,3 @@
|
|||
SUBDIRS = man xml
|
||||
|
||||
# Xserver.man covers options generic to all X servers built in this tree
|
||||
# (i.e. those handled in the os/utils.c options processing instead of in
|
||||
# the DDX-level options processing)
|
||||
appmandir = $(APP_MAN_DIR)
|
||||
appman_PRE = Xserver.man.pre
|
||||
|
||||
appman_PROCESSED = $(appman_PRE:man.pre=man)
|
||||
appman_DATA = $(appman_PRE:man.pre=@APP_MAN_SUFFIX@)
|
||||
|
||||
BUILT_SOURCES = $(appman_PROCESSED)
|
||||
CLEANFILES = $(appman_PROCESSED) $(appman_DATA)
|
||||
|
||||
include $(top_srcdir)/cpprules.in
|
||||
|
||||
.man.$(APP_MAN_SUFFIX):
|
||||
$(AM_V_at)cp $< $@
|
||||
|
||||
EXTRAMANDEFS = -D__default_font_path__="`echo $(COMPILEDDEFAULTFONTPATH) | $(SED) -e 's/,/, /g'`"
|
||||
|
||||
# Docs about X server internals that we ship with source but don't install
|
||||
DEVEL_DOCS = smartsched
|
||||
|
||||
EXTRA_DIST = $(DEVEL_DOCS) $(appman_PRE) $(fileman_PRE)
|
||||
|
||||
SUBDIRS = xml
|
||||
dist_noinst_DATA = smartsched
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
# Xserver.man covers options generic to all X servers built in this tree
|
||||
# (i.e. those handled in the os/utils.c options processing instead of in
|
||||
# the DDX-level options processing)
|
||||
|
||||
appmandir = $(APP_MAN_DIR)
|
||||
appman_PRE = Xserver.man
|
||||
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
|
||||
|
||||
EXTRA_DIST = $(appman_PRE)
|
||||
CLEANFILES = $(appman_DATA)
|
||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||
|
||||
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||
# 's|/,|/, |g' will add a space to help font path formatting
|
||||
MAN_SUBSTS += -e 's|__datadir__|$(datadir)|g' \
|
||||
-e 's|__default_font_path__|$(COMPILEDDEFAULTFONTPATH)|g' \
|
||||
-e '\|$(COMPILEDDEFAULTFONTPATH)| s|/,|/, |g'
|
||||
|
||||
.man.$(APP_MAN_SUFFIX):
|
||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
Loading…
Reference in New Issue