summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-11-13 17:59:28 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-11-13 17:59:28 +0000
commit54d9a60a1891c1c1938db00d835b8fe0a12327c6 (patch)
tree3203b74d316029585b72ea1aeef28fe308023324
parentf0dfdfc7b4ee020ffb83a9179b9d4d4a6139b5e1 (diff)
downloadxorg-lib-libXcursor-54d9a60a1891c1c1938db00d835b8fe0a12327c6.tar.gz
Use $(LIB_MAN_SUFFIX) instead of forcing man page into section 3.
-rw-r--r--ChangeLog6
-rw-r--r--configure.ac1
-rw-r--r--man/Makefile.am16
3 files changed, 21 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 01979b1..ac2c077 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-13 Alan Coopersmith <alan.coopersmith@sun.com>
+
+ * configure.ac:
+ * man/Makefile.am:
+ Use $(LIB_MAN_SUFFIX) instead of forcing man page into section 3.
+
2005-11-09 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
diff --git a/configure.ac b/configure.ac
index f963f30..2d02778 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,7 @@ AC_DEFINE(HAVE_XFIXES, 1, [Define to 1 if you have Xfixes])
AC_SUBST(XCURSOR_CFLAGS)
AC_SUBST(XCURSOR_LIBS)
+XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION
AC_OUTPUT([Makefile
diff --git a/man/Makefile.am b/man/Makefile.am
index 94cca7f..c1abd06 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,3 +1,15 @@
-man_MANS = Xcursor.3
+libmandir = $(mandir)/man$(LIB_MAN_SUFFIX)
-EXTRA_DIST = $(man_MANS)
+libman_SOURCES = Xcursor.man
+libman_DATA = $(libman_SOURCES:man=@LIB_MAN_SUFFIX@)
+
+all-local: $(libman_DATA)
+
+EXTRA_DIST = $(libman_SOURCES)
+CLEANFILES = $(libman_DATA)
+
+SUFFIXES = .$(LIB_MAN_SUFFIX) .man
+
+.man.$(LIB_MAN_SUFFIX):
+ -rm -f $@
+ $(LN_S) $< $@