Xvfb: build Xvfb 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
Fix trailing whitespaces

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:51 -05:00 committed by Keith Packard
parent 3f4c71799b
commit 9240cffd65
5 changed files with 19 additions and 27 deletions

View File

@ -2242,6 +2242,7 @@ hw/dmx/input/Makefile
hw/dmx/glxProxy/Makefile
hw/dmx/Makefile
hw/vfb/Makefile
hw/vfb/man/Makefile
hw/xnest/Makefile
hw/xnest/man/Makefile
hw/xwin/Makefile

2
hw/vfb/.gitignore vendored
View File

@ -1,3 +1 @@
# Add & Override for this directory and it's subdirectories
Xvfb
Xvfb.man

View File

@ -1,3 +1,5 @@
SUBDIRS = man
bin_PROGRAMS = Xvfb
noinst_LIBRARIES = libfbcmap.a
@ -28,24 +30,5 @@ Xvfb_LDADD = $(XVFB_LIBS) $(XVFB_SYS_LIBS) $(XSERVER_SYS_LIBS)
Xvfb_DEPENDENCIES = $(XVFB_LIBS)
Xvfb_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
# Man page
include $(top_srcdir)/cpprules.in
appmandir = $(APP_MAN_DIR)
appman_PRE = Xvfb.man
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
BUILT_SOURCES = $(appman_PRE)
CLEANFILES = $(appman_PRE) $(appman_DATA)
SUFFIXES += .$(APP_MAN_SUFFIX) .man
.man.$(APP_MAN_SUFFIX):
-$(AM_V_at)rm -f $@
$(AM_V_at)$(LN_S) $< $@
EXTRA_DIST = Xvfb.man.pre
relink:
$(AM_V_at)rm -f Xvfb$(EXEEXT) && $(MAKE) Xvfb$(EXEEXT)

10
hw/vfb/man/Makefile.am Normal file
View File

@ -0,0 +1,10 @@
appmandir = $(APP_MAN_DIR)
appman_PRE = Xvfb.man
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
EXTRA_DIST = $(appman_PRE)
CLEANFILES = $(appman_DATA)
SUFFIXES = .$(APP_MAN_SUFFIX) .man
.man.$(APP_MAN_SUFFIX):
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@