diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-03-28 02:03:45 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-03-28 02:03:45 +0000 |
commit | 2e0b389f84baf224d259247feced6f3b9741e3b0 (patch) | |
tree | a97e4668f251538eb1c490f51916731fd1b2a356 /src/man | |
parent | 34535574e95c1003ea63540fbf8c2c62fe155e02 (diff) | |
download | krb5-2e0b389f84baf224d259247feced6f3b9741e3b0.tar.gz krb5-2e0b389f84baf224d259247feced6f3b9741e3b0.tar.xz krb5-2e0b389f84baf224d259247feced6f3b9741e3b0.zip |
Move rstman build target to man directory
rstman makes more sense in man than in doc, so move it there. Remove
the rstman target from the top-level doc Makefile to avoid confusion.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25792 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/man')
-rw-r--r-- | src/man/Makefile.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/man/Makefile.in b/src/man/Makefile.in index 2ba1e3a593..c9c58850c1 100644 --- a/src/man/Makefile.in +++ b/src/man/Makefile.in @@ -1,6 +1,7 @@ mydir=man BUILDTOP=$(REL).. +SPHINX_BUILD=sphinx-build GROFF=@GROFF@ GROFF_MAN=$(GROFF) -mtty-char -Tascii -mandoc -c localstatedir=@localstatedir@ @@ -10,6 +11,22 @@ MANSUBS=k5identity.sub k5login.sub k5srvutil.sub kadmin.sub kadmind.sub \ klist.sub kpasswd.sub kprop.sub kpropd.sub kproplog.sub krb5.conf.sub \ krb5kdc.sub ksu.sub kswitch.sub ktutil.sub kvno.sub +docsrc=$(top_srcdir)/../doc + +# Update checked-in man pages from RST sources in the top-level doc +# directory. This can be done from an unconfigured tree with: +# make -f Makefile.in top_srcdir=.. srcdir=. rstman +# make -f Makefile.in clean +# The sed command deletes some trailing whitespace that the docutils +# manpage writer outputs near the end of its output files. +rstman: + rm -rf rst_man + $(SPHINX_BUILD) -q -t mansubs -b man $(docsrc)/rst_source rst_man + for f in rst_man/*.[0-9]; do \ + name=`echo $$f | sed -e 's|^.*/\(.*\)\.[0-9]$$|\1|'`; \ + sed -e '/^\.\\" $$/d' $$f > $(srcdir)/$$name.man; \ + done + .SUFFIXES: .man .sub .man.sub: @@ -21,7 +38,7 @@ MANSUBS=k5identity.sub k5login.sub k5srvutil.sub kadmin.sub kadmind.sub \ all:: $(MANSUBS) clean:: - $(RM) $(MANSUBS) + rm -rf $(MANSUBS) rst_man install:: install-clientman install-fileman install-adminman install-serverman |