diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-10-12 00:39:36 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-10-12 00:39:36 +0000 |
commit | 86f92c112c22604824d2044b566b8cbee81cb397 (patch) | |
tree | a82b715f5be0f2c7d76926a3f28f6a97db451c2a /Makefile.am | |
parent | bd48f668b3c8d5de53e42b73ef4e4136d384672d (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.am | 34 |
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) |