XFree86 utils: build utils 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:53 -05:00 committed by Keith Packard
parent ac5ffef60e
commit b9276cb86b
9 changed files with 14 additions and 31 deletions

View File

@ -2233,6 +2233,7 @@ hw/xfree86/vgahw/Makefile
hw/xfree86/x86emu/Makefile
hw/xfree86/xaa/Makefile
hw/xfree86/utils/Makefile
hw/xfree86/utils/man/Makefile
hw/xfree86/utils/cvt/Makefile
hw/xfree86/utils/gtf/Makefile
hw/dmx/config/Makefile

View File

@ -1,3 +1,4 @@
SUBDIRS = \
gtf \
cvt
cvt \
man

View File

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

View File

@ -32,11 +32,3 @@ cvt_SOURCES = cvt.c \
$(top_srcdir)/os/xprintf.c
cvt_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS)
man1_MANS = cvt.man
CLEANFILES = $(man1_MANS)
include $(top_srcdir)/cpprules.in
EXTRA_DIST = cvt.man.pre

View File

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

View File

@ -25,20 +25,3 @@ bin_PROGRAMS = gtf
gtf_SOURCES = gtf.c
gtf_CFLAGS = $(XORG_CFLAGS)
gtf_LDADD = -lm
appmandir = $(APP_MAN_DIR)
appman_PRE = gtf.man
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
include $(top_srcdir)/cpprules.in
EXTRA_DIST = gtf.man.pre
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) $< $@

View File

@ -0,0 +1,10 @@
appmandir = $(APP_MAN_DIR)
appman_PRE = cvt.man gtf.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) < $< > $@

View File

@ -13,7 +13,7 @@ cvt - calculate VESA CVT mode lines
.I Cvt
is a utility for calculating VESA Coordinated Video Timing modes. Given the
desired horizontal and vertical resolutions, a modeline adhering to the CVT
standard is printed. This modeline can be included in __xservername__
standard is printed. This modeline can be included in __xservername__
.B __xconfigfile__(__filemansuffix__)
.