summaryrefslogtreecommitdiff
path: root/man
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 /man
parentf0dfdfc7b4ee020ffb83a9179b9d4d4a6139b5e1 (diff)
Use $(LIB_MAN_SUFFIX) instead of forcing man page into section 3.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am16
1 files changed, 14 insertions, 2 deletions
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) $< $@