summaryrefslogtreecommitdiff
path: root/hw/xfree86/utils
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-01-09 20:27:53 -0500
committerKeith Packard <keithp@keithp.com>2011-01-18 15:10:32 -0800
commitb9276cb86b433bc740fe26c2e624d3d5399732f6 (patch)
tree3809e3e2583612b910ebc048774f03b17e27ddbd /hw/xfree86/utils
parentac5ffef60e05eb05275913b133786709881e7e7e (diff)
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>
Diffstat (limited to 'hw/xfree86/utils')
-rw-r--r--hw/xfree86/utils/Makefile.am3
-rw-r--r--hw/xfree86/utils/cvt/.gitignore2
-rw-r--r--hw/xfree86/utils/cvt/Makefile.am8
-rw-r--r--hw/xfree86/utils/gtf/.gitignore2
-rw-r--r--hw/xfree86/utils/gtf/Makefile.am17
-rw-r--r--hw/xfree86/utils/man/Makefile.am10
-rw-r--r--hw/xfree86/utils/man/cvt.man (renamed from hw/xfree86/utils/cvt/cvt.man.pre)2
-rw-r--r--hw/xfree86/utils/man/gtf.man (renamed from hw/xfree86/utils/gtf/gtf.man.pre)0
8 files changed, 13 insertions, 31 deletions
diff --git a/hw/xfree86/utils/Makefile.am b/hw/xfree86/utils/Makefile.am
index d27861b03..71f979048 100644
--- a/hw/xfree86/utils/Makefile.am
+++ b/hw/xfree86/utils/Makefile.am
@@ -1,3 +1,4 @@
SUBDIRS = \
gtf \
- cvt
+ cvt \
+ man
diff --git a/hw/xfree86/utils/cvt/.gitignore b/hw/xfree86/utils/cvt/.gitignore
index 7816fd7c6..a217c5563 100644
--- a/hw/xfree86/utils/cvt/.gitignore
+++ b/hw/xfree86/utils/cvt/.gitignore
@@ -1,3 +1 @@
-# Add & Override for this directory and it's subdirectories
cvt
-cvt.man
diff --git a/hw/xfree86/utils/cvt/Makefile.am b/hw/xfree86/utils/cvt/Makefile.am
index ba02145b7..4ebcedf39 100644
--- a/hw/xfree86/utils/cvt/Makefile.am
+++ b/hw/xfree86/utils/cvt/Makefile.am
@@ -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
diff --git a/hw/xfree86/utils/gtf/.gitignore b/hw/xfree86/utils/gtf/.gitignore
index 9aebbbb60..919c993fb 100644
--- a/hw/xfree86/utils/gtf/.gitignore
+++ b/hw/xfree86/utils/gtf/.gitignore
@@ -1,3 +1 @@
-# Add & Override for this directory and it's subdirectories
gtf
-gtf.man
diff --git a/hw/xfree86/utils/gtf/Makefile.am b/hw/xfree86/utils/gtf/Makefile.am
index ea1c5fb8c..f77bf608e 100644
--- a/hw/xfree86/utils/gtf/Makefile.am
+++ b/hw/xfree86/utils/gtf/Makefile.am
@@ -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) $< $@
diff --git a/hw/xfree86/utils/man/Makefile.am b/hw/xfree86/utils/man/Makefile.am
new file mode 100644
index 000000000..fd2af8ed6
--- /dev/null
+++ b/hw/xfree86/utils/man/Makefile.am
@@ -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) < $< > $@
diff --git a/hw/xfree86/utils/cvt/cvt.man.pre b/hw/xfree86/utils/man/cvt.man
index 8a292eed8..b380171ee 100644
--- a/hw/xfree86/utils/cvt/cvt.man.pre
+++ b/hw/xfree86/utils/man/cvt.man
@@ -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__)
.
diff --git a/hw/xfree86/utils/gtf/gtf.man.pre b/hw/xfree86/utils/man/gtf.man
index 74ade74cb..74ade74cb 100644
--- a/hw/xfree86/utils/gtf/gtf.man.pre
+++ b/hw/xfree86/utils/man/gtf.man