summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-01-19 10:06:55 -0500
committerGaetan Nadon <memsize@videotron.ca>2011-01-19 10:06:55 -0500
commit490ceddc3e97e8c5bf1ed61265525c213abf65d1 (patch)
tree2ab2e918ff853c00ca6be4c0d3a9e317d7198fb9
parent36d4517099505fac29a3c0b8c6c3779b3f05b8ff (diff)
config: move man pages into their own directory
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--Makefile.am23
-rw-r--r--configure.ac5
-rw-r--r--man/Makefile.am12
-rw-r--r--man/Xmark.man (renamed from Xmark.man)0
-rw-r--r--man/x11perf.man (renamed from x11perf.man)0
-rw-r--r--man/x11perfcomp.man (renamed from x11perfcomp.man)0
6 files changed, 18 insertions, 22 deletions
diff --git a/Makefile.am b/Makefile.am
index c14391c..3b6d13b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,6 +19,7 @@
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
+SUBDIRS = man
bin_PROGRAMS = x11perf
bin_SCRIPTS = x11perfcomp
@@ -52,34 +53,14 @@ x11perf_SOURCES = \
x11perf.c \
x11perf.h
-appman_PRE = \
- x11perfcomp.man \
- x11perf.man \
- Xmark.man
-
x11perfcomp: x11pcomp.cpp
$(AM_V_GEN)$(SED) s/LIBPATH/`echo $(LIBPATH) | sed -e s/\\\\//\\\\\\\\\\\\\//g`/ < $(srcdir)/x11pcomp.cpp | \
$(SED) s/XCOMM/\#/ > $@
-
-MAINTAINERCLEANFILES = ChangeLog INSTALL
CLEANFILES = $(bin_SCRIPTS) x11perfcomp
-
EXTRA_DIST = x11pcomp.cpp
-appmandir = $(APP_MAN_DIR)
-
-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
-.man.$(APP_MAN_SUFFIX):
- $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
-
+MAINTAINERCLEANFILES = ChangeLog INSTALL
.PHONY: ChangeLog INSTALL
diff --git a/configure.ac b/configure.ac
index 552ea8d..96126f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,4 +72,7 @@ yes)
;;
esac
-AC_OUTPUT([Makefile])
+AC_CONFIG_FILES([
+ Makefile
+ man/Makefile])
+AC_OUTPUT
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644
index 0000000..14c63bd
--- /dev/null
+++ b/man/Makefile.am
@@ -0,0 +1,12 @@
+
+appmandir = $(APP_MAN_DIR)
+appman_PRE = x11perfcomp.man x11perf.man Xmark.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
+.man.$(APP_MAN_SUFFIX):
+ $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
diff --git a/Xmark.man b/man/Xmark.man
index 4e91162..4e91162 100644
--- a/Xmark.man
+++ b/man/Xmark.man
diff --git a/x11perf.man b/man/x11perf.man
index 1fcbf20..1fcbf20 100644
--- a/x11perf.man
+++ b/man/x11perf.man
diff --git a/x11perfcomp.man b/man/x11perfcomp.man
index 4f567d2..4f567d2 100644
--- a/x11perfcomp.man
+++ b/man/x11perfcomp.man