Xquartz: build Xquartz man pages using XORG_MANPAGE_SECTIONS

Nothing requires the use of a C preprocessor
Using standard file extensions (.man)
Use standard directory and makefile

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Gaetan Nadon 2011-01-09 20:27:47 -05:00 committed by Keith Packard
parent a9e85013b1
commit c06c46acdc
2 changed files with 8 additions and 11 deletions

View File

@ -1,16 +1,13 @@
appmandir = $(APP_MAN_DIR)
appman_PRE = Xquartz.man.pre
appman_PROCESSED = $(appman_PRE:man.pre=man)
appman_DATA = $(appman_PRE:man.pre=@APP_MAN_SUFFIX@)
appman_PRE = Xquartz.man
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
CLEANFILES = $(appman_PROCESSED) $(appman_DATA)
EXTRA_DIST = $(appman_PRE)
CLEANFILES = $(appman_DATA)
SUFFIXES = .$(APP_MAN_SUFFIX) .man
include $(top_srcdir)/cpprules.in
MANDEFS += -D__laucnd_id_prefix__=$(LAUNCHD_ID_PREFIX)
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
MAN_SUBSTS += -e 's|__laucnd_id_prefix__|$(LAUNCHD_ID_PREFIX)|g'
.man.$(APP_MAN_SUFFIX):
$(AM_V_at)cp $< $@
EXTRA_DIST = \
Xquartz.man.pre
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@