summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-12 00:39:36 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-12 00:39:36 +0000
commit86f92c112c22604824d2044b566b8cbee81cb397 (patch)
treea82b715f5be0f2c7d76926a3f28f6a97db451c2a /Makefile.am
parentbd48f668b3c8d5de53e42b73ef4e4136d384672d (diff)
Use sed to put version number in man page Add shadow man pages for man
pages that document multiple functions.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am34
1 files changed, 31 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 82211ca..6e3c372 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,6 +29,34 @@ xauinclude_HEADERS = include/X11/Xauth.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xau.pc
-man_MANS = Xau.3
-
-EXTRA_DIST = xau.pc.in Autest.c $(man_MANS)
+libmandir = $(mandir)/man$(LIB_MAN_SUFFIX)
+libman_SOURCES = Xau.man
+BUILT_SOURCES = .shadows.DONE
+CLEANFILES = $(libman_DATA)
+libman_DATA = $(libman_SOURCES:man=$(LIB_MAN_SUFFIX)) \
+ $(Xau_shadows:=.$(LIB_MAN_SUFFIX))
+
+EXTRA_DIST = xau.pc.in Autest.c $(libman_SOURCES)
+
+Xau_shadows = \
+ XauFileName \
+ XauReadAuth \
+ XauLockAuth \
+ XauUnlockAuth \
+ XauWriteAuth \
+ XauDisposeAuth \
+ XauGetAuthByAddr \
+ XauGetBestAuthByAddr
+
+.shadows.DONE:
+ -rm -f $(Xau_shadows:=.$(LIB_MAN_SUFFIX))
+ (for i in $(Xau_shadows:=.$(LIB_MAN_SUFFIX)) ; do \
+ echo .so man$(LIB_MAN_SUFFIX)/Xau.$(LIB_MAN_SUFFIX) > $$i; \
+ done)
+
+XORGRELSTRING = @PACKAGE_STRING@
+ XORGMANNAME = X Version 11
+
+Xau.$(LIB_MAN_SUFFIX): $(srcdir)/Xau.man
+ sed 's/__xorgversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/' \
+ < $(srcdir)/Xau.man > Xau.$(LIB_MAN_SUFFIX)